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 49216 - Java editor throws an exception
Summary: Java editor throws an exception
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-09-17 17:58 UTC by namanpatel
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

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 namanpatel 2004-09-17 17:58:01 UTC
Open a java file in netbeans dev build and press
return on the first line first char of the file
and you will see an exception. 
My envirinment is : 

Java  version : 1.5.0 RC 
VM : Client
OS : Windows XP.

Exception:

java.lang.AssertionError
	at
org.netbeans.editor.ext.ExtSyntaxSupport.getTokenChain(ExtSyntaxSupport.java:109)
	at
org.netbeans.modules.editor.java.JavaKit$JavaInsertBreakAction.beforeBreak(JavaKit.java:898)
	at
org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:885)
	at
org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:178)
	at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at
javax.swing.JComponent.processKeyBinding(JComponent.java:2730)
	at
javax.swing.JComponent.processKeyBindings(JComponent.java:2765)
	at
javax.swing.JComponent.processKeyEvent(JComponent.java:2693)
	at
java.awt.Component.processEvent(Component.java:5265)
	at
java.awt.Container.processEvent(Container.java:1966)
	at
java.awt.Component.dispatchEventImpl(Component.java:3955)
	at
java.awt.Container.dispatchEventImpl(Container.java:2024)
	at
java.awt.Component.dispatchEvent(Component.java:3803)
	at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:668)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:916)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:794)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:632)
	at
java.awt.Component.dispatchEventImpl(Component.java:3841)
	at
java.awt.Container.dispatchEventImpl(Container.java:2024)
	at
java.awt.Window.dispatchEventImpl(Window.java:1766)
	at
java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jan Pokorsky 2004-09-17 18:12:40 UTC
reassigning to editor for evaluation
Comment 2 Jan Chalupa 2004-09-20 09:49:34 UTC
Reproducible with dev-200409191800. Doesn't seem to be reproducible
with Beta 2 builds. Please evaluate.
Comment 3 Miloslav Metelka 2004-09-20 10:44:07 UTC
This was a regression of #48491 fixed on Sep17. Beta2 is unaffected.
Fixed in main trunk:
Checking in src/org/netbeans/modules/editor/java/JavaKit.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v  <-- 
JavaKit.java
new revision: 1.105; previous revision: 1.104

I'm working on a test as well. I will commit it during today.
Comment 4 Miloslav Metelka 2004-09-20 17:47:03 UTC
Added tests to trunk:
Checking in cfg-qa-functional.xml;
/cvs/editor/test/cfg-qa-functional.xml,v  <--  cfg-qa-functional.xml
new revision: 1.34; previous revision: 1.33
done
Processing log script arguments...
More commits to come...
RCS file:
/cvs/editor/test/qa-functional/data/goldenfiles/general/GeneralTypingTest/testJavaEnterBeginAndEnd.pass,v
done
Checking in
qa-functional/data/goldenfiles/general/GeneralTypingTest/testJavaEnterBeginAndEnd.pass;
/cvs/editor/test/qa-functional/data/goldenfiles/general/GeneralTypingTest/testJavaEnterBeginAndEnd.pass,v
 <--
 testJavaEnterBeginAndEnd.pass
initial revision: 1.1
done
Processing log script arguments...
More commits to come...
RCS file:
/cvs/editor/test/qa-functional/data/projects/editor_test/src/general/GeneralTypingTest/testJavaEnterBeginAndEnd.java,v
done
Checking in
qa-functional/data/projects/editor_test/src/general/GeneralTypingTest/testJavaEnterBeginAndEnd.java;
/cvs/editor/test/qa-functional/data/projects/editor_test/src/general/GeneralTypingTest/testJavaEnterBeginAndEnd.java,v
 <--  testJavaEnterBeginAndEnd.java
initial revision: 1.1
done
Processing log script arguments...
More commits to come...
RCS file:
/cvs/editor/test/qa-functional/src/general/GeneralTestSuite.java,v
done
Checking in qa-functional/src/general/GeneralTestSuite.java;
/cvs/editor/test/qa-functional/src/general/GeneralTestSuite.java,v 
<--  GeneralTestSuite.java
initial revision: 1.1
done
RCS file:
/cvs/editor/test/qa-functional/src/general/GeneralTypingTest.java,v
done
Checking in qa-functional/src/general/GeneralTypingTest.java;
/cvs/editor/test/qa-functional/src/general/GeneralTypingTest.java,v 
<--  GeneralTypingTest.java
initial revision: 1.1
d
Comment 5 Roman Strobl 2005-07-15 12:56:28 UTC
Verified.