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 97157 - UnsupportedOperationException after "Surround with Try/Catch"
Summary: UnsupportedOperationException after "Surround with Try/Catch"
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-03 12:38 UTC by Tim Lebedkov
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2007-03-03 12:38:14 UTC
--->A hint for "Surround with try/catch" was shown here     for (Iterator it =
t.getFields().iterator(); it.hasNext();) {
                ColumnInfo col = (ColumnInfo) it.next();
                add(new SelectionTreeNode(col));
            }


java.lang.UnsupportedOperationException
	at java.util.AbstractList.add(AbstractList.java:131)
	at java.util.AbstractList.addAll(AbstractList.java:243)
	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)
Comment 1 Jan Lahoda 2007-03-20 19:00:03 UTC
The Java infrastructure and Java hints have been rewritten for NB6.0, so this
particular problem should not occur in NB6.0.
Comment 2 Tim Lebedkov 2007-09-19 18:27:33 UTC
ok