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 240201 - BadLocationException thrown in a read-only Java source
Summary: BadLocationException thrown in a read-only Java source
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Milutin Kristofic
: 237298 (view as bug list)
Depends on:
Reported: 2014-01-10 10:36 UTC by Jiri Sedlacek
Modified: 2014-01-14 15:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2014-01-10 10:36:38 UTC
Product Version: NetBeans IDE Dev (Build 20140109-7f792743fbef)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)


  1/ Open source for java.lang.Object
  2/ Press Tab key in the editor

javax.swing.text.BadLocationException: Modification not allowed
	at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(
	at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(
	at org.openide.text.CloneableEditorSupport$DocFilter.remove(
	at org.netbeans.editor.BaseDocument.remove(
	at org.netbeans.editor.BaseKit$
	at org.netbeans.editor.GuardedDocument.runAtomic(
	at org.netbeans.editor.BaseKit.insertTabString(
[catch] at org.netbeans.editor.BaseKit$InsertTabAction$
	at org.netbeans.editor.GuardedDocument.runAtomicAsUser(
	at org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(
	at org.netbeans.editor.BaseAction.actionPerformed(
	at javax.swing.SwingUtilities.notifyAction(
	at javax.swing.JComponent.processKeyBinding(
	at javax.swing.JComponent.processKeyBindings(
	at javax.swing.JComponent.processKeyEvent(
Comment 1 Milutin Kristofic 2014-01-10 14:03:28 UTC
After this changeset is applied to dev build, editor will make just sound to inform it cannot write tab, as it does when you try insert or delete characters in guarded document.
Comment 2 Quality Engineering 2014-01-13 02:15:56 UTC
Integrated into 'main-silver', will be available in build *201401130002* on (upload may still be in progress)

User: Milutin Kristofic <>
Log: #240201 - BadLocationException thrown in a read-only Java source
Comment 3 Milutin Kristofic 2014-01-14 15:23:32 UTC
*** Bug 237298 has been marked as a duplicate of this bug. ***