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.
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
Created attachment 33085 [details] Exception
[EXPECTED] o make [Surround with try-catch] disabled on read-only files or o show in editor status bar that "current file read-only"
Created attachment 33087 [details] stacktrace
Reorganization of java component
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.