Bug 8789

Summary: Compiler incorrectly reports that abstract method has a body
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Peter Burka CLA 2002-01-30 16:49:52 EST
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.
Comment 1 Philipe Mulet CLA 2002-01-30 18:00:22 EST
Which build number was this in?
Comment 2 Philipe Mulet CLA 2002-01-31 05:53:40 EST
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 ***