Community
Participate
Working Groups
Two default constructors are added inside anonymous types when there is a syntax error. eg. public class X { void foo() { # new Object() {}; } } The type binding of anonymous type has two default constructor. This problem can be seen in a DOM AST.
Created attachment 58769 [details] Proposed fix
Released for 3.3M6. Test added ASTConverterTest2#test0607() Tests updated CompletionParserTest CompletionParserTest2 CompletionRecoveryTest DietRecoveryTest EnumCompletionParserTest EnumDietRecoveryTest InnerTypeCompletionTest LabelStatementCompletionTest NameReferenceCompletionTest ReferenceTypeCompletionTest SelectionTest StatementRecoveryTest
Verified for 3.3 M6 using build I20070319-1335.