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 11395 - StringIndexOutOfBoundsException in Java Parser
Summary: StringIndexOutOfBoundsException in Java Parser
Status: CLOSED DUPLICATE of bug 15897
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-13 14:53 UTC by Martin Ryzl
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 Martin Ryzl 2001-04-13 14:53:02 UTC
I noticed the following exception. However, I can't reproduce it yet.

java.lang.StringIndexOutOfBoundsException: String index out of range: -44
        at java.lang.String.<init>(String.java:237)
        at java.lang.String.copyValueOf(String.java:1982)
        at org.netbeans.modules.java.parser.DocumentModelBuilder.setBodyBounds(D
ocumentModelBuilder.java:105)
        at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.
java:437)
        at org.netbeans.lib.javac.v8.tree.Tree$MethodDef.visit(Tree.java:442)
        at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.
java:302)
        at org.netbeans.lib.javac.v8.tree.Tree$ClassDef.visit(Tree.java:389)
        at org.netbeans.modules.java.gj.V8TreeTranslator._case(V8TreeTranslator.
java:188)
        at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326)
        at org.netbeans.modules.java.gj.V8TreeTranslator.process(V8TreeTranslato
r.java:94)
        at org.netbeans.modules.java.gj.ParserEngine.completeRequest(ParserEngin
e.java:335)
        at org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.ja
va:172)
        at org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngin
e.java:107)
        at org.netbeans.modules.java.parser.ParsingSupport$Processor.process(Par
singSupport.java:635)
        at org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockMo
del(ParsingSupport.java:595)
        at org.netbeans.modules.java.parser.ParsingSupport$Processor.run(Parsing
Support.java:535)
        at org.openide.util.Task.run(Task.java:124)
        at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcesso
r.java:622)
Comment 1 Svata Dedic 2001-04-17 17:09:03 UTC
Sorry, I cannot reproduce it too :-(
Please try to reproduce it (somehow). Possible causes are
- line in the source is too long
- the source has too many lines
- some unusual construction in the code
- something completely different.

Comment 2 Tomas Hurka 2001-11-08 11:32:15 UTC
The way how to reproduce this bug was found.
Comment 3 Tomas Hurka 2001-11-08 11:34:09 UTC

*** This issue has been marked as a duplicate of 15897 ***
Comment 4 Quality Engineering 2003-07-01 13:12:28 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:20:09 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.