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.
[build 20051208] For some annotations the java.lang.RuntimeException: Unexpected type of ASTree: 86 is thrown. User can't continue in editing the file with this annotation. I was able to reproduce the issue for case: @TableGenerator(name="ORDER_GEN",table=@Table("XXX")) It seems that annotation @Table is problem.
Created attachment 28012 [details] stack trace
move from temp component
Fixed by merge from release50 branch.
Stll reproducible for case: @MessageDriven( activationConfig={ @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue") })
I'm able to reproduce the issue in J2SE project and NetBeans 5.0.
Please provide complete testcase. I'm not able to reproduce with provided annotation only on FCS build.
Steps to reproduce: 1) create new Java project 2) add javaee.jar on project's classpath 3) add new class in project 4) implements MessageListener intf 5) implement onMessage method 6) paste mentioned annotation above public class ... 7) Fix import, press Alt+Shift+F
Thanks for the info. One small question - where do I get the javaee.jar?
And one more question, why is this issue P1?
Lowering priority, it's not stopper for 5.0 release. Must be fixed for next release.
I think that the issue isn't a stopper for NetBeans 5.0 but should be resolved in NetBeans 5.5 Preview release. The issues blocks a user to create MDB beans and we would like to show these types of EJB in comming release.
This is a P1 for the NB 5.5 Preview release. Thanks.
This issue is similar to issue 65285, which was already fixed. Unfortunately this test case is still valid.
The exception is caused by very special combination. Annotation must have initialization of ArrayInitialization type and this ArrayInitialization must contain another Annotation. Something like this: @A ( d={ @C() , @D() } )
Right. Note that this is used quite often in the Java Persistence API. Another example: @SecondaryTables({ @SecondaryTable(name="TBL1"), @SecondaryTable(name="TBL2") }) class ...
Fixed in trunk. Checking in ArrayInitializationImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ ArrayInitializationImpl.java,v <-- ArrayInitializationImpl.java new revision: 1.6; previous revision: 1.5 done Checking in MetadataElement.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v <-- MetadataElement.java new revision: 1.71; previous revision: 1.70 done
Issue verified in continual build 20060131-1055. Please, commit the fix in javaee5 branch.
Fixed in javaee5 http://java.netbeans.org/source/browse/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java?r1=1.56.4.4&r2=1.56.4.5 http://java.netbeans.org/source/browse/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ArrayInitializationImpl.java?r1=1.5&r2=1.5.26.1
build 200602072300
Reorganization of java component