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 210517 - org.netbeans.editor.GuardedException: Modification prohibited
Summary: org.netbeans.editor.GuardedException: Modification prohibited
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-02 10:05 UTC by pragalathan
Modified: 2012-04-26 05:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186541


Attachments
stacktrace (10.14 KB, text/plain)
2012-04-02 10:05 UTC, pragalathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pragalathan 2012-04-02 10:05:53 UTC
Build: NetBeans IDE Dev (Build 201203280401)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
pragalathan: Trying to rename an implemented method




Stacktrace: 
org.netbeans.editor.GuardedException: Modification prohibited
   at org.netbeans.editor.BaseDocument.checkModifiable(BaseDocument.java:1003)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:891)
   at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:406)
   at org.netbeans.api.java.source.ModificationResult.access$100(ModificationResult.java:95)
   at org.netbeans.api.java.source.ModificationResult$3.run(ModificationResult.java:371)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:347)
Comment 1 pragalathan 2012-04-02 10:05:58 UTC
Created attachment 117644 [details]
stacktrace
Comment 2 Dusan Balek 2012-04-05 13:09:43 UTC
GuardedExceptions should be properly handled in JavaModificationResult. See e.g. org.netbeans.modules.java.editor.codegen.GeneratorUtils.guardedCommit(...) and its usages.
Comment 3 Jan Becicka 2012-04-16 11:30:33 UTC
Please provide steps to reproduce
Comment 4 Jan Becicka 2012-04-26 05:46:13 UTC
Please provide steps to reproduce