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 234904

Summary: javax.swing.text.BadLocationException: Modification not allowed
Product: editor Reporter: rodrigorsantos <rodrigorsantos>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal CC: Petah, zdenek.rod
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203170
Attachments: stacktrace

Description rodrigorsantos 2013-08-23 18:37:22 UTC
Build: NetBeans IDE Dev (Build 20130823-7861a967d96f)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
rodrigorsantos: <Please provide a description of the problem or the steps to reproduce>

zdenek.rod: I try to update file but ide don't allow to me this modification.

zdenek.rod: I try to comment some line in xsl, but file was locked.




Stacktrace: 
javax.swing.text.BadLocationException: Modification not allowed
   at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(CloneableEditorSupport.java:2336)
   at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(CloneableEditorSupport.java:2330)
   at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2269)
   at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:754)
   at org.netbeans.modules.csl.api.ToggleBlockCommentAction.insert(ToggleBlockCommentAction.java:421)
   at org.netbeans.modules.csl.api.ToggleBlockCommentAction.comment(ToggleBlockCommentAction.java:338)
Comment 1 rodrigorsantos 2013-08-23 18:37:24 UTC
Created attachment 139152 [details]
stacktrace
Comment 2 Milutin Kristofic 2013-08-27 13:03:39 UTC
http://hg.netbeans.org/jet-main/rev/0b3c064124ab
Comment 3 Milutin Kristofic 2013-08-27 13:05:54 UTC
*** Bug 233816 has been marked as a duplicate of this bug. ***