Never quite what the recommended behaviour is when you try to do equals() on two objects of completely different types, but if you do (for example)
ObjectPrxHelperBase prx = ...
if (prx.equals(new Integer(0))) {
...
}
you get a ClassCastException, rather than equals() returning false.
Is this deliberate?
It's a bit unfortunate for what I'm trying to do because I'm passing a proxy into some code that's not mine (I'm trying to display a tree of remote objects in an Eclipse tree view if that means anything to anyone) and so I can't easily change either the Eclispe code or the ObjectPrxBaseHelper class.

Reply With Quote