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 88788 - StringIndexOutOfBoundsException on incomplete #include
Summary: StringIndexOutOfBoundsException on incomplete #include
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-07 10:51 UTC by Vladimir Kvashin
Modified: 2006-11-07 14:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (2.78 KB, text/plain)
2006-11-07 10:53 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2006-11-07 10:51:17 UTC
Enter next text and *don't save file*. Click on this "hyperlink".

#include <
template<class T1,class T2>

StringIndexOutOfBoundsException occurs.

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.netbeans.modules.cnd.modelimpl.apt.impl.structure.APTIncludeBaseNode.getFileName(APTIncludeBaseNode.java:112)
        at
org.netbeans.modules.cnd.modelimpl.apt.impl.support.APTIncludeResolverImpl.resolveInclude(APTIncludeResolverImpl.java:53)
        at
org.netbeans.modules.cnd.modelimpl.apt.impl.support.parser.APTParseFileWalker.onInclude(APTParseFileWalker.java:106)
        at
org.netbeans.modules.cnd.modelimpl.apt.support.APTWalker.onAPT(APTWalker.java:204)
Comment 1 Vladimir Kvashin 2006-11-07 10:53:15 UTC
Created attachment 35837 [details]
Stack trace
Comment 2 Vladimir Voskresensky 2006-11-07 14:29:50 UTC
fixed.

cvs log:
Checking in APTIncludeBaseNode.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/structure/APTIncludeBaseNode.java,v
 <--  APTIncludeBaseNode.java
new revision: 1.2.2.8; previous revision: 1.2.2.7
done