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.

Bug 187766 - [69cat] UnsupportedOperationException: Not supported yet.
Summary: [69cat] UnsupportedOperationException: Not supported yet.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 07:58 UTC by alied
Modified: 2011-03-09 05:32 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170773


Attachments
stacktrace (3.34 KB, text/plain)
2010-06-18 07:58 UTC, alied
Details
stacktrace (3.78 KB, text/plain)
2011-02-10 00:45 UTC, devon_c_miller
Details
stacktrace (3.45 KB, text/plain)
2011-02-19 21:55 UTC, _ tboudreau
Details
stacktrace (3.78 KB, text/plain)
2011-03-01 18:04 UTC, _ tboudreau
Details
stacktrace (3.78 KB, text/plain)
2011-03-07 17:15 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2010-06-18 07:58:04 UTC
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)
Comment 1 alied 2010-06-18 07:58:08 UTC
Created attachment 100191 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-01-29 05:40:10 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=170773
Comment 3 devon_c_miller 2011-02-10 00:45:48 UTC
Created attachment 105814 [details]
stacktrace

Move Inner to Outer where inner is an enum
Comment 4 _ tboudreau 2011-02-19 21:55:19 UTC
Created attachment 106198 [details]
stacktrace

Trying to move inner to outer on a package private inner enum class.
Comment 5 _ tboudreau 2011-03-01 18:04:13 UTC
Created attachment 106607 [details]
stacktrace

Tried to use move inner to outer on a public inner enum
Comment 6 _ tboudreau 2011-03-01 18:27:48 UTC
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?
Comment 7 aldobrucale 2011-03-07 17:15:51 UTC
Created attachment 106793 [details]
stacktrace

Moving inner to outer level (moving a public enum in a package-private class)
Comment 8 Jan Lahoda 2011-03-08 15:20:09 UTC
Not a really nice solution, but I hope it will work acceptably:
http://hg.netbeans.org/jet-main/rev/23661b65d4ff
Comment 9 Quality Engineering 2011-03-09 05:32:54 UTC
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).