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 83032 - Exception on "Surround with try-catch"
Summary: Exception on "Surround with try-catch"
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-18 23:56 UTC by santhosh
Modified: 2008-02-25 16:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (1.31 KB, application/octet-stream)
2006-08-18 23:57 UTC, santhosh
Details
stacktrace (1.31 KB, text/plain)
2006-08-18 23:59 UTC, santhosh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description santhosh 2006-08-18 23:56:31 UTC
steps to reproduce:

o open source of java.util.ArrayList in editor
o select few lines of code in any method
o right click for popup and click [Surround with try-catch]
  ===> you will be rewarded an exception
Comment 1 santhosh 2006-08-18 23:57:02 UTC
Created attachment 33085 [details]
Exception
Comment 2 santhosh 2006-08-18 23:58:26 UTC
[EXPECTED]

o make [Surround with try-catch] disabled on read-only files

or

o show in editor status bar that "current file read-only"
Comment 3 santhosh 2006-08-18 23:59:43 UTC
Created attachment 33087 [details]
stacktrace
Comment 4 Quality Engineering 2007-09-20 09:43:07 UTC
Reorganization of java component
Comment 5 Jan Becicka 2008-02-25 16:08:56 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.