Community
Participate
Working Groups
During an introduction course to Eclipse we got a error. We wrote an interface public interface Test { public void myMethod() <<-- without a semicolon! } and the tooltip and quick fix said that a curly brace is missing. But there must be a semicolon. Have to retest that on 3.1MS3. Sorry, havent have the time for download yet.
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.