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 1904 - Opening file in editor throws exception. ALSO #1898.
Summary: Opening file in editor throws exception. ALSO #1898.
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 normal (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-05-21 22:12 UTC by Milan Kubec
Modified: 2007-11-05 13:44 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 Milan Kubec 1999-05-21 22:12:48 UTC
Open attached file in editor, exception is thrown and  then file cannot be parsed.

Exception occurred in request processor:
java.lang.ArrayIndexOutOfBoundsException: 5006
        at com.netbeans.editor.Syntax.searchTokenType(Compiled Code)
        at com.netbeans.editor.Syntax.scan(Compiled Code)
        at com.netbeans.editor.Syntax.scan(Compiled Code)
        at com.netbeans.editor.Analyzer.initialRead(Compiled Code)
        at com.netbeans.editor.BaseDocument.read(BaseDocument.java:744)
        at com.netbeans.editor.BaseKit.read(BaseKit.java:278)
        at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:117)
        at com.netbeans.developer.modules.loaders.java.JavaEditor.loadFromStreamToKit(JavaEditor.java:183)
        at com.netbeans.ide.text.EditorSupport.loadDocument(EditorSupport.java:593)

        at com.netbeans.ide.text.EditorSupport.access$2(EditorSupport.java:586)
        at com.netbeans.ide.text.EditorSupport$1.run(EditorSupport.java:240)
        at com.netbeans.ide.util.Task.run(Compiled Code)
        at com.netbeans.ide.text.EditorSupport$2.run(EditorSupport.java:254)
Exception occurred during event dispatching:
java.lang.Error
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Error.<init>(Error.java:41)
        at com.netbeans.editor.LeafElement.getEndOffset(LeafElement.java:84)
        at javax.swing.text.View.getEndOffset(Compiled Code)
        at com.netbeans.editor.LeafView.getPosFromY(LeafView.java:205)
        at com.netbeans.editor.LeafView.paintAreas(LeafView.java:153)
        at com.netbeans.editor.BaseView.paint(BaseView.java:133)
        at com.netbeans.editor.BaseTextUI$RootView.paint(BaseTextUI.java:836)
        at com.netbeans.editor.BaseTextUI.paintRegion(BaseTextUI.java:343)
        at com.netbeans.editor.Drawer.paint(Drawer.java:177)
        at com.netbeans.editor.Ex