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.
Summary: | javax.swing.text.BadLocationException: Modification not allowed | ||
---|---|---|---|
Product: | editor | Reporter: | Petr Cyhelsky <cyhelsky> |
Component: | -- Other -- | Assignee: | Milutin Kristofic <mkristofic> |
Status: | NEW --- | ||
Severity: | normal | CC: | GastonMF, mahmuddinnf, ovrabec, Sunil.Ghorpade, terje7601 |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 203621 |
Attachments: | stacktrace |
Description
Petr Cyhelsky
2013-12-06 15:57:53 UTC
Created attachment 142918 [details]
stacktrace
Reassigning back. Looking at org.netbeans.editor.BaseDocument.replace(BaseDocument.java:1042), at this point it is already after a call to "checkModifiable(offset);" so it looks as if BaseDocument allows editing but further org.openide.text.CloneableEditorSupport$DocFilter disallows it. Lack of inconsistency? Or please advise on what should be the correct way to determine if a document is editable: http://hg.netbeans.org/core-main/file/4005d84fa44d/versioning.ui/src/org/netbeans/modules/versioning/ui/diff/DiffSidebar.java#l373 This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203621 |