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 84227 - UnsupportedOperationException when invoking Surround w t/c hint
Summary: UnsupportedOperationException when invoking Surround w t/c hint
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-05 15:24 UTC by Max Sauer
Modified: 2008-04-10 10:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed java source file (5.36 KB, text/plain)
2006-09-05 15:26 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-09-05 15:24:46 UTC
I'm getting following exception when invoking "Surround with try-catch" hint, in
case it is already in a try-catch block.

Steps to reproduce:
-------------------
1) Add attached "Creator.java" file to a j2se project
2) Open it
3) Place carret on loc 143
4) Invoke "Surround with try-catch" hint
=>

java.lang.UnsupportedOperationException
	at java.util.AbstractList.add(AbstractList.java:151)
	at java.util.AbstractList.addAll(AbstractList.java:306)
	at org.netbeans.modules.javacore.TryWrapper.wrap(TryWrapper.java:165)
	at
org.netbeans.modules.java.hints.TryWrapperJavaHint.implement(TryWrapperJavaHint.java:66)
	at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:340)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)

--
Product Version         = NetBeans 5.5 Dev (Build 200609040000)
Operating System        = SunOS version 5.10 running on sparcv9
Java; VM; Vendor; Home  = 1.5.0_09-ea; Java HotSpot(TM) 64-Bit Server VM
1.5.0_09-ea-b01; Sun Microsystems Inc.; /usr/jdk1.5.0_09/jre
System Locale; Encoding = en (nb); ISO646-US
Comment 1 Max Sauer 2006-09-05 15:26:23 UTC
Created attachment 33605 [details]
proposed java source file
Comment 2 Quality Engineering 2007-09-20 09:54:32 UTC
Reorganization of java component
Comment 3 Jan Becicka 2008-02-25 16:15:57 UTC
This issue is not valid in current builds any more. Java support was completely
redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.
Comment 4 Max Sauer 2008-04-01 15:32:49 UTC
Integrated in ssssss #18 (See [http://localhost:8080/job/ssssss/18/]/)
Comment 5 Max Sauer 2008-04-01 16:53:22 UTC
Integrated in ssssss #19 (See [http://localhost:8080/job/ssssss/19/]/)
Comment 6 Max Sauer 2008-04-03 12:21:41 UTC
Integrated in ssssss #23 (See [http://localhost:8080/job/ssssss/23/]/[])
Comment 7 Max Sauer 2008-04-03 12:42:27 UTC
Integrated in a11y3 #8 (See [http://localhost:8080/job/a11y3/8/]/[3fd1a8529257dcbcd102bf14111c4fe110c4a4d3])
Comment 8 Max Sauer 2008-04-03 13:16:44 UTC
Integrated in a11y3 #10 (See [http://localhost:8080/job/a11y3/10/] / [Changeset acd3e740b6f5])<br>Link: http://hg.netbeans.org/main/contrib/rev/acd3e740b6f5
Comment 9 Max Sauer 2008-04-07 11:08:44 UTC
Integrated in a11y3 #12 (See [http://localhost:8080/job/a11y3/12/] / [Changeset 3ba3675d44f2])
Link: http://hg.netbeans.org/main/rev/3ba3675d44f2
Comment 10 Quality Engineering 2008-04-10 10:12:27 UTC
Integrated in Cron2 #8 : http://hg.netbeans.org/main/rev/