Summary: | Wrong error message "; expected" when writing an interface | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jan Matèrne <jan.materne> | ||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | ||||||
Version: | 3.0 | ||||||
Target Milestone: | 3.3 M3 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Jan Matèrne
2004-12-07 02:18:05 EST
This is due to the fact we tolerate methods with body inside interfaces to flag them during the resolution. David, can we fix this? I don't consider this as crucial since this is a syntax error. Ok, Retest with Eclipse 3.1M3 Version: 3.1.0 Build id: 200411050810 Problem messages are: - Syntax error, insert "}" to complete InterfaceBody - Syntax error on token ")", { expected after this token Deferring post 3.1 still open on 3.3 nightly build N20061013-0010 Created attachment 52017 [details]
Proposed fix
Released for 3.3 M3 Tests added DietrecoveryTest#test115() -> test116() StatementRecoveryTest#test0043() SyntaxErrorTest#test11() -> test12() With the fix the error message is "Syntax error, insert ";" to complete MethodDeclaration" But if the test case would contain a statement public interface Test { public void myMethod() System.out.println(); } the message is still to insert a "{". Verified for 3.3 M3 using warm-up build I20061030-0010. |