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 52183 - [tests] ClassCastException from where used tests
Summary: [tests] ClassCastException from where used tests
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords: RANDOM, T9Y
: 52191 52225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-08 09:02 UTC by ehucka
Modified: 2006-03-24 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-12-08 09:02:18 UTC
"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.
Comment 1 ehucka 2004-12-08 09:29:23 UTC
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)
Comment 2 Martin Matula 2004-12-08 09:30:27 UTC
web issue -> reassigning to web
Comment 3 Martin Grebac 2004-12-08 12:55:18 UTC
*** Issue 52191 has been marked as a duplicate of this issue. ***
Comment 4 Martin Grebac 2004-12-08 13:16:53 UTC
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
Comment 5 Martin Grebac 2004-12-09 08:31:44 UTC
*** Issue 52225 has been marked as a duplicate of this issue. ***
Comment 6 zikmund 2005-04-01 08:38:23 UTC
Emane could you please verify this issue? Thanks.
Comment 7 ehucka 2005-04-01 08:46:40 UTC
verified