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 99014 - ISE when adding import
Summary: ISE when adding import
Status: VERIFIED DUPLICATE of bug 100162
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 17:05 UTC by Jiri Prox
Modified: 2008-02-15 10:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (1.70 KB, text/plain)
2007-03-26 17:06 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-03-26 17:05:18 UTC
NetBeans IDE Dev (Build 200703251800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

ISE it thrown when using 'Add import' hint in class which has no empty space
or/and comments at the beginning of the file (e.g. class in default package, the
declaration begins at the first line)

Steps to reproduce:
1) create new class in default package
2) delete any leading comments (the kw 'class' must be at first line)
3) inside class body write 'IOException ioe;'
4) fix imports
->
java.lang.IllegalStateException: No token fetched by moveNext() from token
sequence yet: index=0
	at org.netbeans.api.lexer.TokenSequence.checkTokenNotNull(TokenSequence.java:724)
	at org.netbeans.api.lexer.TokenSequence.offset(TokenSequence.java:233)
Comment 1 Jiri Prox 2007-03-26 17:06:30 UTC
Created attachment 39961 [details]
full stacktrace
Comment 2 Miloslav Metelka 2007-04-24 14:47:05 UTC
Reassigning to java module for evaluation.
Comment 3 Jan Becicka 2007-08-22 14:35:44 UTC

*** This issue has been marked as a duplicate of 100162 ***
Comment 4 Jiri Prox 2008-02-15 10:21:00 UTC
verified duplicate