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

Summary: [gjast] Wrong last token for annotation attributes
Product: java Reporter: Martin Matula <mmatula>
Component: UnsupportedAssignee: _ tball <tball>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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