Community
Participate
Working Groups
Enter the following class into Eclipse and save it: package foo; public abstract class Bar { public abstract void foo(); public static void main(String[] args) { } } } Two errors will be displayed: On the line with 'foo()': 'Abstract methods do not specify a body' On the last line: 'Syntax error on token "}", "interface" or "class" expected The second error is correct. The first error is completely invalid and very misleading. The line it is on is completely correct. This is a particularly bad one because the Outline view does not show the second error at all -- you can only see it in the text pane. In a large class it may not be obvious that there is a second error.
Which build number was this in?
Fix will go into next integration build. I am now only getting one error for the extra closing curly brace. *** This bug has been marked as a duplicate of 8384 ***