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 200406211800, j2sdk1.4.2 Sorry, I don't know exact steps, but an attached exception happened after some refactoring action (rename, move) <snip> Annotation: member: class abc.B Annotation: name: abc.B Annotation: class org.netbeans.jmi.javamodel.JavaClass$Impl java.lang.IllegalStateException: cannot map class member to source hierarchy element at org.netbeans.modules.java.ui.nodes.BridgeUtils.throwIllegalState(BridgeUtils.jav a:164) at org.netbeans.modules.java.ui.nodes.BridgeUtils.chooseElement(BridgeUtils.java:15 3) at org.netbeans.modules.java.ui.nodes.BridgeUtils.getElement(BridgeUtils.java:98) at org.netbeans.modules.java.ui.nodes.BridgeElement2Source.createClassNode(BridgeEl ement2Source.java:54) at o </snip>
Created attachment 15908 [details] Exception
Honzo, any idea what's going on?
It means exactly what it says. It is impossible to find a java/srcmodel element corresponding to JavaClass element (class abc.B) when SourceChildren creates the class node.
The problem was probably introduced by adding parameterized types. Classes may be wrapped by the ParameterizedType and the equals method no longer works (one needs to unwrap the wrapped objects before they are compared using ParameterizedType.getDefinition()). I am not sure if this is the real cause, but likely it is.
Then it should be simply reproducible, shouldn't it?
I have never been able to reproduce this. Seems that it is fixed.
Verified - 200410070525 - can not reproduce
Reorganization of java component