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 91675 - GenerationUtils#addAnnotation does not retain newly added methods
Summary: GenerationUtils#addAnnotation does not retain newly added methods
Status: RESOLVED DUPLICATE of bug 91265
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks: 90607
  Show dependency tree
 
Reported: 2007-01-02 13:48 UTC by Erno Mononen
Modified: 2007-01-02 14:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
GenerationUtilsTest diff (3.23 KB, text/plain)
2007-01-02 13:59 UTC, Erno Mononen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2007-01-02 13:48:55 UTC
There seems to be some issue with the GenerationUtils#addAnnotation(ClassTree, 
AnnotationTree) method when the given class has members that were added within 
the same task in which the addAnnotations method was invoked. It seems that the 
added members are lost after invoking the addAnnotations method. Attached is a 
diff for o.n.m.j2ee.common.source.GenerationUtilsTest containing a test case 
demonstrating the problem. Note that if you comment out the call to 
TreeMaker#addModifiersAnnotation in the addAnnotation method, the newly added 
methods are not lost, so unless the usage pattern in the addAnnotation method 
is not valid the problem might be in the TreeMaker.
Comment 1 Erno Mononen 2007-01-02 13:59:49 UTC
Created attachment 36975 [details]
GenerationUtilsTest diff
Comment 2 Andrei Badea 2007-01-02 14:33:46 UTC

*** This issue has been marked as a duplicate of 91265 ***