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 50066 - [40cat] ArrayIndexOutOfBoundsException while opening a file
Summary: [40cat] ArrayIndexOutOfBoundsException while opening a file
Status: RESOLVED DUPLICATE of bug 49840
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-07 08:41 UTC by skesper
Modified: 2007-09-26 09:14 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 skesper 2004-10-07 08:41:09 UTC
[ BUILD # : 200410031800 ]
[ JDK VERSION : J2SE 1.5.0 ]

Can't reproduce this on a regular basis but the
exception is thrown from time to time. Just opened
a file while the exception window opened:

java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
	at
java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:773)
	at
java.lang.StringBuffer.deleteCharAt(StringBuffer.java:383)
	at
org.netbeans.modules.javacore.parser.ASTProvider.removeJavadocStars(ASTProvider.java:641)
	at
org.netbeans.modules.javacore.parser.ASTProvider.getJavaDoc(ASTProvider.java:423)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getJavadocText(FeatureImpl.java:168)
	at
org.netbeans.jmi.javamodel.Field$Impl.getJavadocText(Unknown
Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getJavadoc(FeatureImpl.java:203)
	at
org.netbeans.jmi.javamodel.Field$Impl.getJavadoc(Unknown
Source)
	at
org.netbeans.modules.editor.java.NbJavaFoldManager$ClassMemberFoldInfo.<init>(NbJavaFoldManager.java:787)
	at
org.netbeans.modules.editor.java.NbJavaFoldManager.collectClassFoldUpdates(NbJavaFoldManager.java:388)
	at
org.netbeans.modules.editor.java.NbJavaFoldManager.collectFoldUpdates(NbJavaFoldManager.java:328)
	at
org.netbeans.modules.editor.java.NbJavaFoldManager.updateFolds(NbJavaFoldManager.java:215)
	at
org.netbeans.modules.editor.java.NbJavaFoldManager.run(NbJavaFoldManager.java:198)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 Milos Kleint 2004-10-07 08:45:53 UTC
moving to java
Comment 2 Martin Matula 2004-10-07 09:00:48 UTC
This is probably fixed. Pavle, please check it.
Comment 3 Pavel Flaska 2004-10-07 10:39:34 UTC
It was fixed recently, see issue #49840 for reference.

*** This issue has been marked as a duplicate of 49840 ***