Re: class name?

Mark Brouwer <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Bob Scheifler wrote:
>> The
>> Jini ERI dynamic proxies will show the class name and also list all the
>> interfaces implemented by that dynamic proxy.
>
> It only shows the first interface implemented by the proxy.
> You may be better off calling proxy.getClass().getInterfaces()
> and picking the interface(s) you want directly.

The above is contrary to the package private spec for
BasicInvocationHandler.proxyToString which is called when toString() is
invoked on the dynamic proxy.

"Returns a string representing for the dynamic proxy object, by default
the string representation is based on the {@link #toString()} of this
invocation handler with an additional listing of all interfaces
implemented by the dynamic proxy object."
--
Mark

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.