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 223701 - IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens) TokenSequence for text/x-java at tokenIndex=0. TokenList contains 70 tokens: *[
Summary: IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previo...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-12 09:05 UTC by Jiri Prox
Modified: 2013-08-27 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 194197


Attachments
stacktrace (6.67 KB, text/plain)
2012-12-12 09:05 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-12-12 09:05:42 UTC
Build: NetBeans IDE Dev (Build 201212120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Windows 7

User Comments:
jiriprox: ISE when editing file




Stacktrace: 
java.lang.IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens)
TokenSequence for text/x-java at tokenIndex=0. TokenList contains 70 tokens:
*[ 0]: "/*\n* To change this template, choose Tools | Templates\n* and open the template in the editor.\n*/" <0,96> BLOCK_COMMENT[111] DefT, IHC=953034435
T[ 1]: "\n" <96,97> WHITESPACE[109] DefT, IHC=1716709719
T[ 2]: "package" F(7) PACKAGE[33] FlyT, IHC=1297449788
T[ 3]: " " F(1) WHITESPACE[109] FlyT, IHC=689635278
T[ 4]: "foo" <105,108> IDENTIFIER[1] DefT, IHC=730874487
T[ 5]: ";" F(1) SEMICOLON[67] FlyT, IHC=201042169
T[ 6]: "\n\n" <109,111> WHITESPACE[109] DefT, IHC=923957652
T[ 7]: "import" F(6) IMPORT[26] FlyT, IHC=502005707
T[ 8]: " " F(1) WHITESPACE[109] FlyT, IHC=689635278
T[ 9]: "lombok" <118,124> IDENTIFIER[1] DefT, IHC=1894152133
T[10]: "." F(1) DOT[69] FlyT, IHC=717316203
T[11]: "Data" <125,129> IDENTIFIER[1] DefT, IHC=2107713210
T[12]: ";" F(1) SEMICOLON[67] FlyT, IHC=201042169
T[13]: "\n" <
   at org.netbeans.api.lexer.TokenSequence.checkTokenNotNull(TokenSequence.java:739)
   at org.netbeans.api.lexer.TokenSequence.offset(TokenSequence.java:254)
   at org.netbeans.api.java.source.AssignComments.findInterestingStart(AssignComments.java:349)
   at org.netbeans.api.java.source.AssignComments.collect(AssignComments.java:152)
   at org.netbeans.api.java.source.AssignComments.mapComments2(AssignComments.java:138)
   at org.netbeans.api.java.source.AssignComments.scan(AssignComments.java:112)
Comment 1 Jiri Prox 2012-12-12 09:05:44 UTC
Created attachment 129244 [details]
stacktrace
Comment 2 Jan Lahoda 2013-08-26 16:26:59 UTC
http://hg.netbeans.org/jet-main/rev/19a5b05b903c
Comment 3 Quality Engineering 2013-08-27 10:04:44 UTC
Integrated into 'main-silver', will be available in build *201308270854* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/19a5b05b903c
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #223701: swallowing broken positions presumably produced by Lombok.