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 254702 - javax.swing.text.BadLocationException: Modification not allowed
Summary: javax.swing.text.BadLocationException: Modification not allowed
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 11:41 UTC by Alexander Simon
Modified: 2015-09-04 01:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219419


Attachments
stacktrace (969 bytes, text/plain)
2015-08-25 11:41 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-08-25 11:41:55 UTC
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)
Comment 1 Alexander Simon 2015-08-25 11:41:57 UTC
Created attachment 155615 [details]
stacktrace
Comment 2 danilasergeyev 2015-09-03 08:37:54 UTC
fixed, change set:
https://hg.netbeans.org/cnd-main/rev/451874373d4b
Comment 3 danilasergeyev 2015-09-03 09:44:13 UTC
small additional changes:
https://hg.netbeans.org/cnd-main/rev/d25921b2bc98
Comment 4 Quality Engineering 2015-09-04 01:25:08 UTC
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