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 193914 - [70cat] org.netbeans.editor.GuardedException: Attempt to insert into guarded block at position 13,452.
Summary: [70cat] org.netbeans.editor.GuardedException: Attempt to insert into guarded ...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 15:33 UTC by ytn01
Modified: 2011-01-11 10:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174127


Attachments
stacktrace (2.65 KB, text/plain)
2010-12-29 15:33 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2010-12-29 15:33:03 UTC
Build: NetBeans IDE Dev (Build 201012150001)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows 7

User Comments:
ytn01: I added an event  for a  JTextField component that was part of a JDialog GUI design that I was currently working on, via the GUI editor.
I inserted my code for the event handler method generated by the  IDE.
I added another new event for the same JTextField component,
I formatted the souce, rebuild the whole project, then run it.
After the run session ended, I switched to "Source View" mode of the GUI, then I cut and pasted the code I inserted for the first event handler method into the body of the second event handler's method,
I switched to "Design View" mode, anf from there tried to navigate to the first event handler method via the JTextField's event list.
The excaption was generated.




Stacktrace: 
org.netbeans.editor.GuardedException: Attempt to insert into guarded block at position 13,452.
   at org.netbeans.editor.GuardedDocument.preInsertCheck(GuardedDocument.java:235)
   at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:769)
   at org.netbeans.editor.BaseKit$2.run(BaseKit.java:3165)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
   at org.netbeans.editor.BaseKit.insertTabString(BaseKit.java:3140)
   at org.netbeans.editor.BaseKit$InsertTabAction$1.run(BaseKit.java:1555)
Comment 1 ytn01 2010-12-29 15:33:07 UTC
Created attachment 104597 [details]
stacktrace
Comment 2 David Strupl 2011-01-11 10:53:52 UTC
Should be fixed by
http://hg.netbeans.org/jet-main/rev/6731fa449d34