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 119202 - IllegalStateException when user edit file
Summary: IllegalStateException when user edit file
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 13:19 UTC by soldatov
Modified: 2007-11-01 08:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2007-10-17 13:19:55 UTC
Steps:
- Create C/C++ Application project
- Create empty C file
- Type in editor "<ENTER>int main() {" and press ENTER
==>
java.lang.IllegalStateException: Already locked
	at org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:129)
	at org.netbeans.modules.editor.indent.FormatterImpl.indentLock(FormatterImpl.java:81)
	at org.netbeans.modules.cnd.editor.cplusplus.CCKit$CCInsertBreakAction.beforeBreak(CCKit.java:355)
	at org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1141)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:288)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
	at java.awt.Component.processEvent(Component.java:5815)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
	at java.awt.Component.dispatchEventImpl(Component.java:4282)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 soldatov 2007-10-17 13:33:07 UTC
reproduced in 200710170000 build on linux and windows
Comment 2 Vladimir Voskresensky 2007-10-17 13:59:38 UTC
fixed
- use the same formatter

cvs log:
Checking in CCKit.java;
/cvs/cnd/core/src/org/netbeans/modules/cnd/editor/cplusplus/CCKit.java,v  <--  CCKit.java
new revision: 1.16; previous revision: 1.15
done
Comment 3 soldatov 2007-11-01 08:48:08 UTC
verified in 200710310000 build