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.
package javaapplication1; import java.util.EventObject; public interface MyInterface { final class MyChangedEvent extends EventObject { public MyChangedEvent(final Object source) { super(source); } } } Refactoring MyInterface.MyChangeEvent via "Move Inner to Outer" results in package javaapplication1; import java.util.EventObject; public final class MyChangedEvent extends EventObject { public MyChangedEvent(final Object source) {} }
build: nbms-and-javadoc-6918-on-20110324 Platform: PC and Mac
it looks like super call is lost somewhere in code generator
I know the cause (the tree is considered to be synthetic, because the query for its end position uses the target CompilationUnitTree, which of course does not have an entry for the original tree). Not sure about the solution yet.
*** Bug 204346 has been marked as a duplicate of this bug. ***
Unfortunately, I still do not see a nice (and really universal) solution. Nonetheless, this should fix the problem in Move to Outter and similar refactorings: http://hg.netbeans.org/jet-main/rev/31cd2cacd4ae
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/31cd2cacd4ae User: Jan Lahoda <jlahoda@netbeans.org> Log: #197097: Move Inner to Outer omits declared super() calls