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.
Example: public class Example { void foo() { class Test { } new Test(); } } Assign Return Value To New Variable on "new Test()" incorrectly results in: name.of.pkg.Example.foo.Test test = new Test(); The correct result would simply be: Test test = new Test();
Could you please try the current daily build? I tried, and it appears to produce the correct output. So probably this was fixed by some other change - possibly with our upgrade to JDK8 javac. I have added a test to ensure it is not going to be reintroduced: http://hg.netbeans.org/jet-main/rev/7aca330c5f57 Thanks.
I can confirm that it is fixed in 7.3.1.
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7aca330c5f57 User: Jan Lahoda <jlahoda@netbeans.org> Log: #197050: adding test