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.
This issue was reported manually by alexvsimon. It already has 1 duplicates Build: NetBeans IDE Dev (Build 20150825-5b1970e16e66) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27 OS: SunOS User Comments: alexvsimon: fix hixnt on readonly file Stacktrace: javax.swing.text.BadLocationException: Modification not allowed at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(CloneableEditorSupport.java:2430) at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(CloneableEditorSupport.java:2424) at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2360) at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:749) at org.netbeans.modules.cnd.highlight.hints.MissingGuardBlock$AddGuardBlock.implement(MissingGuardBlock.java:236) at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:837)
Created attachment 155615 [details] stacktrace
fixed, change set: https://hg.netbeans.org/cnd-main/rev/451874373d4b
small additional changes: https://hg.netbeans.org/cnd-main/rev/d25921b2bc98
Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/451874373d4b User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fix bug #254702 javax.swing.text.BadLocationException: Modification not allowed