[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug swing/27651] New: ClassCastException via
From: |
Andrew Pinski |
Subject: |
Re: [Bug swing/27651] New: ClassCastException via |
Date: |
Wed, 17 May 2006 18:29:21 -0400 (EDT) |
>
> When running openjump, trying to fetch a map using WMS, I get this
> exception:
>
> java.lang.ClassCastException: javax/swing/JTree$DynamicUtilTreeNode
> at
> com.vividsolutions.jump.workbench.ui.plugin.wms.MapLayerTreeModel$LayerNode.equals(MapLayerTreeModel.java:123)
> at javax.swing.tree.TreePath.isDescendant(TreePath.java:269)
.....
> The throwing code in MapLayerTreeModel.java:123 is this cast to
> LayerNode:
>
> public class MapLayerTreeModel extends DefaultTreeModel {
> [...]
> public static class LayerNode implements TreeNode, Comparable {
> [...]
> public boolean equals(Object o) {
> //Needed for the #contains check in MapLayerPanel, as well as
> #getIndex. [Jon Aquino]
> LayerNode other = (LayerNode) o;
I don't think this is a bug in classpath. equals can take any object type so
this exception is correct.
-- Pinski