Ticket #3 (new defect)
Opened 3 years ago
proper handling of new
| Reported by: | anonymous | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: |
Description
The following programs are equivalent:
public class Main {
void run() {
System.out.println("foo");
}
public static void main(String[] args) {
(new Main()).run();
}
}
public class Main {
void run() {
System.out.println("foo");
}
public static void main(String[] args) {
new Main().run();
}
}
The first is correctly parsed, the second currently fails.
Note: See
TracTickets for help on using
tickets.
