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.
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)
reassigning to editor for evaluation
Reproducible with dev-200409191800. Doesn't seem to be reproducible with Beta 2 builds. Please evaluate.
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.
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
Verified.