* @return classname@hashcode
*/
public String getClassLoaderName() {
- return ((loader!=null)?loader.getClass().getName()+"@"+Integer.toHexString(loader.hashCode()):"null");
+ return ((loader!=null)?loader.getClass().getName()+"@"+Integer.toHexString(System.identityHashCode(loader)):"null");
}
/**
}
/* Use classname@hashcode */
- else return obj.getClass().getName() + "@" + Integer.toHexString(obj.hashCode());
+ else return obj.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(obj));
/* Object.hashCode() can be override and may thow an exception */
} catch (Exception ex) {