[jboss-jira] [JBoss JIRA] Updated: (JBCOMMON-36) Add a Classes.getAllUniqueInterfaces utility method.
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Thu Oct 25 17:16:01 EDT 2007
[ http://jira.jboss.com/jira/browse/JBCOMMON-36?page=all ]
Dimitris Andreadis updated JBCOMMON-36:
---------------------------------------
Summary: Add a Classes.getAllUniqueInterfaces utility method. (was: ExternalContext needs pass proxy interface set to the Proxy.newProxyInstance(loader, interfaces, handler); in createProxyContext method.)
Issue Type: Feature Request (was: Bug)
Affects Version/s: (was: 1.0.0.GA)
Description:
Add a Classes.getAllUniqueInterfaces utility method that returns a Class[] with all the unique interfaces implemented by a Class and it's superclasses. This array can be used when creating Proxies with Proxy.newProxyInstance(loader, interfaces, handler), without the fear of specifying duplicate interfaces, due to inheritence.
was:
In the ExternalContext Classes.getAllInterfaces(ifaces, ctx.getClass()); can populate the ifaces with the duplicate Interface entries .
When the ifaces with duplicate Interface entries is passed to the Proxy.newProxyInstance(loader, interfaces, handler); it results in the exception
>>java.lang.IllegalArgumentException: repeated interface:
> Add a Classes.getAllUniqueInterfaces utility method.
> ----------------------------------------------------
>
> Key: JBCOMMON-36
> URL: http://jira.jboss.com/jira/browse/JBCOMMON-36
> Project: JBoss Common
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: common-core, common-old
> Reporter: Vicky Kak
> Assigned To: Dimitris Andreadis
> Fix For: 2.0.6.GA, 1.2.2.GA, 1.0.5.GA, 2.2.3.GA
>
>
> Add a Classes.getAllUniqueInterfaces utility method that returns a Class[] with all the unique interfaces implemented by a Class and it's superclasses. This array can be used when creating Proxies with Proxy.newProxyInstance(loader, interfaces, handler), without the fear of specifying duplicate interfaces, due to inheritence.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list