aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Ward (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1093) Aries proxy doesn't work properly on uninstall/reinstall
Date Fri, 02 Aug 2013 13:27:48 GMT
Timothy Ward created ARIES-1093:
-----------------------------------

             Summary: Aries proxy doesn't work properly on uninstall/reinstall
                 Key: ARIES-1093
                 URL: https://issues.apache.org/jira/browse/ARIES-1093
             Project: Aries
          Issue Type: Bug
            Reporter: Timothy Ward
            Priority: Critical


There are a couple of problems with the Aries Proxy code if you do install/uninstall cycles:

Firstly the Aries subclass generator uses Class.forName(String) in the static initializers
of the classes that it generates. This works, but we need to pass the correct ClassLoader
to avoid odd caching bugs (See http://blog.bjhargrave.com/2007/09/classforname-caches-defined-class-in.html)

Secondly, if the API is installed separately, then reinstalling the Proxy Impl breaks proxying.
The existing woven classes stay woven (the API provides WovenProxy, which it probably shouldn't)
but new woven subclasses use a different unique name for the WovenProxy fields. This causes
NoSuchFieldError to be thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message