This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using the hint "create enum constant...." addes a super() call in the enum constructor: Test enum: public enum ContrTest { VAL1(true), VAL2(false); final private boolean v; ContrTest(boolean v) { this.v = v; } } Now using this enum in another part of code, but with a not yet declared enum: ContrTest a=ContrTest.VAL3; This gives the hint "create enum constant "VAL3" in ..... The result looks like this: public enum ContrTest { VAL1(true), VAL2(false), VAL3; final private boolean v; ContrTest(boolean v) { super(); this.v = v; } } Of course, super() is red underlined by editor.
reproducible
Integrated into 'main-golden', will be available in build *201303162300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2e26aecbee97 User: Jan Lahoda <jlahoda@netbeans.org> Log: #226985: don't mix Trees from different javacs, Fixes must not hold onto any javac instance.
unfortunately I can still reproduce it.
Jirka, what do I need to do to see the problem? I tried the above testcase, but did not succeed. Thanks.
sorry, I've read it wrongly, the issue is about adding 'super()', which is ok now
v.
release73: http://hg.netbeans.org/releases/rev/9c659eb65ba4
Integrated into 'releases', will be available in build *201305042200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/9c659eb65ba4 User: Jan Lahoda <jlahoda@netbeans.org> Log: #226985: don't mix Trees from different javacs, Fixes must not hold onto any javac instance.
verified