Community
Participate
Working Groups
Following source causes out of memory when reconciled: public enum Enum1 { BLEU(){ void foo() { System.out.println(); } }, BLANC, ROUGE; main }
Problem got introduced when addressing DOM AST conversion issue arising from enum recovery (was setting declarationEnd on enum constants). The declarationEnd is only set at end of consumption of enum constants now, but it was used to set a checkpoint during recovery, and thus was looping back at the beginning of unit. Once this is addressed, there is still quite some work to get the proper structure rebuild with this testcase. In particular, the flag for detecting if insideEnumConstantPart is not dealing with nested enum class bodies.
Fixed. The out of memory problem does not occurs inside buil I20041026 but the final fix is inside the next build.
Verified for 3.1 M3 with build I200411040010 + jdt.core HEAD