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 243881 - ArrayIndexOutOfBoundsException in parser
Summary: ArrayIndexOutOfBoundsException in parser
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-17 08:04 UTC by Alexander Simon
Modified: 2014-04-24 02:05 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 Alexander Simon 2014-04-17 08:04:17 UTC
Step to reproduce:
- create new empty C++ source file.
- type ::
See exception in console:
java.lang.ArrayIndexOutOfBoundsException at parsing file /home/alsimon/NetBeansProjects/Quote_4/newfile.cpp
java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.elementData(ArrayList.java:400)
	at java.util.ArrayList.get(ArrayList.java:413)
	at org.netbeans.modules.cnd.antlr.TokenBuffer.LT(TokenBuffer.java:102)
	at org.netbeans.modules.cnd.antlr.LLkParser.LT(LLkParser.java:56)
	at org.netbeans.modules.cnd.modelimpl.parser.generated.CPPParser.declaration(CPPParser.java:9171)
	at org.netbeans.modules.cnd.modelimpl.parser.generated.CPPParser.external_declaration(CPPParser.java:4362)
	at org.netbeans.modules.cnd.modelimpl.parser.generated.CPPParser.translation_unit(CPPParser.java:580)
	at org.netbeans.modules.cnd.modelimpl.parser.ParserProviderImpl$Antlr2CppParser.parse(ParserProviderImpl.java:177)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.doParse(FileImpl.java:1473)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._reparse(FileImpl.java:919)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:699)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:148)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:74)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:92)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 Alexander Simon 2014-04-17 08:22:22 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/fabebc30613b
Comment 2 Quality Engineering 2014-04-18 02:41:41 UTC
Integrated into 'main-silver', will be available in build *201404180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fabebc30613b
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #243881 ArrayIndexOutOfBoundsException in parser
Comment 3 Quality Engineering 2014-04-24 02:05:49 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/0a0c863a6a48
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #243881 ArrayIndexOutOfBoundsException in parser
(transplanted from fabebc30613b8db43761e179c2bc73f5893de362)