Re: XPCOMJavaProxy.hashCode() has huge problem
"Eric Suen" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <L6udnYCi_q_nmjXZnZ2dnUVZ_s6dnZ2d__24997.7449574091$1151862942$gmane$org@mozilla.org> |
>> but use java xpcom, that means we must cast to the right interface, >> otherwise, you can not use hashmap, so, how do I know which interface >> should I use? > all objects are children of nsISupports, so QI to nsISupports > Thanks, Your suggestion works, but I also question about the implemention of the hashCode, because it is annoying that every time I want to use hashCode, I have to cast to nsISupports. Eric