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 200604281015 jdk1.5.06fcs 1) Create EJB Module on Glassfish(JavaEE 5) 2) New -> Entity Classes from Database 3) Add All -> Next 3) Create persistence on Glassfish sample database 4) Fill some package, for example 'just.one.pack' (has to contain at least one '.') -> Finish 5) Richt-click on package with classes -> Refactor -> Rename In a sec you get IAE:Annotation tree not found; resource: just/one/pack/ Customer.java Refactor on sample package name, like 'packo' works (sometimes)
Created attachment 30145 [details] messages.log
Reassigning to refactoring for evaluation, doesn't seem to be related to j2ee/ refactoring.
Problem seems to be in this array initialization: {@NamedQuery(name = "ProductCode.findByProdCode", query = "SELECT p FROM ProductCode p WHERE p.prodCode = :prodCode"), @NamedQuery(name = "ProductCode.findByDiscountCode", query = "SELECT p FROM ProductCode p WHERE p.discountCode = :discountCode"), @NamedQuery(name = "ProductCode.findByDescription", query = "SELECT p FROM ProductCode p WHERE p.description = :description")} annInfo.getASTree().get() returns null It is reproducible.
*** Issue 76320 has been marked as a duplicate of this issue. ***
Fixed in trunk and release55 Checking in ArrayInitializationImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ArrayInitializationImpl.java,v <-- ArrayInitializationImpl.java new revision: 1.8; previous revision: 1.7 done Checking in ArrayInitializationImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ArrayInitializationImpl.java,v <-- ArrayInitializationImpl.java new revision: 1.5.26.1.2.2; previous revision: 1.5.26.1.2.1 done
v. build 200606220200
Reorganization of java component