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 50231 - [gjast] Tokens are not identical
Summary: [gjast] Tokens are not identical
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-11 15:11 UTC by Pavel Flaska
Modified: 2007-09-26 09:14 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 Pavel Flaska 2004-10-11 15:11:18 UTC
I have created test, which checks tokens for their
identity. Consider token t:
Token f =
t.getASTContext().getToken(t.getFirstToken());
Token l =
t.getASTContext().getToken(t.getLastToken());

Test checks, that t == f and t == l and fails. For
details, run javacore unit tests and see log file for
org.netbeans.modules.javacore.parsing.TokenIdentityTest
test.
Comment 1 Pavel Flaska 2004-10-12 09:34:10 UTC
Tom, isn't this fixed already? (Test works correctly.)
Comment 2 _ tball 2004-10-12 15:28:28 UTC
Fixed token cloning for identifiers that are not PRIMARY_THIS or
PRIMARY_CLASS.
Comment 3 Pavel Flaska 2004-10-12 15:31:15 UTC
Works correctly.
Comment 4 Quality Engineering 2007-09-20 10:11:58 UTC
Reorganization of java component