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.
"Find usages of a field" test throws: java.lang.ClassCastException: org.netbeans.jmi.javamodel.Field$Impl org.netbeans.modules.j2ee.refactoring.J2EEWhereUsedRefactoringPlugin.prepare(J2EEWhereUsedRefactoringPlugin.java:103) org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:150) org.netbeans.modules.refactoring.api.WhereUsedQuery.prepare(WhereUsedQuery.java:109) org.netbeans.test.refactoring.usages.WhereUsedTestCase.findField(WhereUsedTestCase.java:73) It is strange, the tested project has nothing to do with j2ee.
Find usages of a constructor or method seems similar: java.lang.ClassCastException: org.netbeans.jmi.javamodel.Constructor$Impl org.netbeans.modules.j2ee.refactoring.J2EEWhereUsedRefactoringPlugin.prepare(J2EEWhereUsedRefactoringPlugin.java:103) java.lang.ClassCastException: org.netbeans.jmi.javamodel.Method$Impl org.netbeans.modules.j2ee.refactoring.J2EEWhereUsedRefactoringPlugin.prepare(J2EEWhereUsedRefactoringPlugin.java:103) org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:150)
web issue -> reassigning to web
*** Issue 52191 has been marked as a duplicate of this issue. ***
Fixed in trunk: Checking in Bundle.properties; /cvs/j2ee/refactoring/src/org/netbeans/modules/j2ee/refactoring/Bundle.properties,v <-- Bundle.properties new revision: 1.6; previous revision: 1.5 done Checking in J2EEWhereUsedRefactoringPlugin.java; /cvs/j2ee/refactoring/src/org/netbeans/modules/j2ee/refactoring/J2EEWhereUsedRefactoringPlugin.java,v <-- J2EEWhereUsedRefactoringPlugin.java new revision: 1.7; previous revision: 1.6 done
*** Issue 52225 has been marked as a duplicate of this issue. ***
Emane could you please verify this issue? Thanks.
verified