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 177415 - offset of empty token sequence
Summary: offset of empty token sequence
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2009-11-23 05:16 UTC by Jan Pokorsky
Modified: 2015-09-17 11:00 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 Jan Pokorsky 2009-11-23 05:16:58 UTC
It is not possible to get offset of the empty token sequence. I run into this when I work with an embedded token sequence. TokenSequence.offset() throws ISE as it is impossible to move to any token and I do not have any access to parent sequence.
Comment 1 Miloslav Metelka 2011-10-05 11:40:06 UTC
Possibly TokenSequence.offset() could give offset of the whole token sequence when pointing not relocated to any concrete token.
Comment 2 Martin Balin 2015-09-17 11:00:10 UTC
Report from old NetBeans version. Due to code changes since it was reported likely to not happen. Feel free to reopen if happens in 8.0.2 or 8.1.