On Thursday 15 January 2004 17:47, Mu Mike wrote: > when I use a ServiceSelector this way > > Object obj=selector.select(MyService.ROLE+"."+hintOfMySpeicialService); > > I got an object of type [EMAIL PROTECTED], when I write this object to String > using its > toString() method, it prints [EMAIL PROTECTED],the problem is
And the toString() "mystery" is that the Proxy delegates the toString(), so that your output becomes what you expect, as it delegates equals() and hashCode() as well. Niclas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]