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 46990 - [gjast] Wrong last token for annotation attributes
Summary: [gjast] Wrong last token for annotation attributes
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: _ tball
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-08-08 01:01 UTC by Martin Matula
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 Martin Matula 2004-08-08 01:01:28 UTC
It seems that the resent integration of new
gjast.jar.scrambled (version 1.57) to fix issue
46580 causes 3 javacore tests to fail. The problem
seems to be that the last token of an annotation
attribute declared as:
int newId();
is the left parenthesis rather than the semicolon,
which makes the javacore code generator generate
wrong diff when adding default value to the
attribute. Instead of
int newId() default 666;
it generates 
int newId default 666();
Comment 1 _ tball 2004-08-11 20:32:09 UTC
Fixed last token value for annotation methods without default values.
Comment 2 Jiri Prox 2005-07-11 16:27:12 UTC
Can you please verify this issus? Thanks.
Comment 3 Martin Matula 2005-07-12 10:19:10 UTC
Verified.
Comment 4 Quality Engineering 2007-09-20 12:02:22 UTC
Reorganization of java component