Community
Participate
Working Groups
If a team class containing an enum declaration is sub-classed the compiler throws: java.lang.NullPointerException at org.eclipse.objectteams.otdt.internal.core.compiler.util.AstConverter.createNestedType(AstConverter.java:356) at org.eclipse.objectteams.otdt.internal.core.compiler.statemachine.copyinheritance.CopyInheritance._OT$copyRole$orig(CopyInheritance.java:598) ... Workaround: declare all enums outside teams for now.
Created attachment 188370 [details] test Here's a minimal witness.
Created attachment 188379 [details] fix under test Here's a minimal fix. Need more testing before calling this resolved.
the patch caused a regression in test1517_nestedRoleFile5() which is fixed in r1294, r1295. Also in a more complex example (SOM tracer) the enum no longer causes problems. Closing as fixed.
A FUP has been filed as bug 348570. Still the core issue has been verified using build 201106070730.