wlu: override hashCode method
diff --git a/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java b/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java index 71ac72b..a0e082c 100644 --- a/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java +++ b/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java
@@ -98,5 +98,17 @@ } return super.equals(obj); } - + + public int hashCode() { + if (proxy instanceof InternalEObject) { + int hc = resolver == null ? 0 : resolver.hashCode(); + URI uri = ((InternalEObject) proxy).eProxyURI(); + if (uri != null) { + return (Integer.toString(hc) + uri).hashCode(); + } + return hc; + } + return super.hashCode(); + } + }