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 1437 - Some sources throw exception when performing save acrtion
Summary: Some sources throw exception when performing save acrtion
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 normal (vote)
Assignee: support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-04-06 21:27 UTC by David Simonek
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 David Simonek 1999-04-06 21:27:20 UTC
open in editor source test/MultiObjectFrame

modify it
try to save it (via save action)
....you`ll end with following exception
(and the source will be deleted!!!)

java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at com.netbeans.editor.DocCache.read(Unknown Source)
        at com.netbeans.editor.BaseDocument.getChars(Unknown Source)
        at com.netbeans.editor.Analyzer.write(Unknown Source)
        at com.netbeans.editor.BaseDocument.write(Unknown Source)
        at com.netbeans.editor.BaseEditorKit.write(Unknown Source)
        at javax.swing.text.DefaultEditorKit.write(DefaultEditorKit.java:136)
        at com.netbeans.developer.modules.loaders.java.JavaEditor.saveFromKitToS
tream(Unknown Source)
        at com.netbeans.ide.text.EditorSupport.saveDocument(Unknown Source)
        at com.netbeans.developer.modules.loaders.java.JavaEditor.saveDocument(U
nknown Source)
        at com.netbeans.developer.modules.loaders.java.JavaEditor.saveDocument(U
nknown Source)
        at com.netbeans.ide.text.EditorSupport$SavingManager.save(Unknown Source
)
        at com.netbeans.ide.actions.SaveAction.performAction(Unknown Source)

        at com.netbeans.ide.util.actions.NodeAction.performAction(Unknown Source
)
        at com.netbeans.ide.util.actions.NodeAction.actionPerformed(Unknown Sour
ce)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:10
66)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1101)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:378)
        at com.netbeans.ide.awt.EnabledButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:217)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
30)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEven
Comment 1 Quality Engineering 2003-07-02 15:43:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.