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.
This bug was originally marked as duplicate of bug 147590, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans Platform 6.9 (Build 201006101454) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Windows Vista User Comments: alied: unreported exception java.net.URISyntaxException; must be caught or declared to be thrown unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown in this hint, I selected "Surround Block with try catch" Stacktrace: java.lang.UnsupportedOperationException: Not supported yet. at org.netbeans.modules.java.source.transform.FieldGroupTree.accept(FieldGroupTree.java:78) at org.netbeans.modules.java.source.pretty.VeryPretty.doAccept(VeryPretty.java:262) at org.netbeans.modules.java.source.pretty.VeryPretty.print(VeryPretty.java:254) at org.netbeans.modules.java.source.save.CasualDiff.diffList(CasualDiff.java:2595) at org.netbeans.modules.java.source.save.CasualDiff.diffBlock(CasualDiff.java:808) at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:2963)
Created attachment 100191 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=170773
Created attachment 105814 [details] stacktrace Move Inner to Outer where inner is an enum
Created attachment 106198 [details] stacktrace Trying to move inner to outer on a package private inner enum class.
Created attachment 106607 [details] stacktrace Tried to use move inner to outer on a public inner enum
I can't actually remember the last time move inner to outer did *not* fail for me with one exception or another, over the last few months. Does this refactoring not have tests?
Created attachment 106793 [details] stacktrace Moving inner to outer level (moving a public enum in a package-private class)
Not a really nice solution, but I hope it will work acceptably: http://hg.netbeans.org/jet-main/rev/23661b65d4ff
Integrated into 'main-golden', will be available in build *201103090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/23661b65d4ff User: Jan Lahoda <jlahoda@netbeans.org> Log: #187766: printing (e.g. after move of inner-to-outter refactoring) of FieldGroupTree should not crash anymore (could be better, though).