[
https://issues.apache.org/jira/browse/ARIES-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144221#comment-13144221
]
Richard Ellis commented on ARIES-775:
-------------------------------------
This appears to be a problem where a class instantiates one of its own sub
classes in a static init. The reflective call to get the constructors on the
super type while weaving the sub class may cause the init which requires the
subclass.
> ClassCircularityError while weaving a class
> -------------------------------------------
>
> Key: ARIES-775
> URL: https://issues.apache.org/jira/browse/ARIES-775
> Project: Aries
> Issue Type: Bug
> Components: Proxy
> Affects Versions: 0.3
> Reporter: Alasdair Nottingham
>
> Stack Dump = java.lang.ClassCircularityError: <snip>
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
> at java.lang.Class.getConstructor0(Class.java:2699)
> at java.lang.Class.getDeclaredConstructor(Class.java:1985)
> at
> org.apache.aries.proxy.impl.common.AbstractWovenProxyAdapter.visit(AbstractWovenProxyAdapter.java:245)
> at org.objectweb.asm.ClassAdapter.visit(Unknown Source)
> at org.objectweb.asm.commons.SerialVersionUIDAdder.visit(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at
> org.apache.aries.proxy.impl.weaving.WovenProxyGenerator.getWovenProxy(WovenProxyGenerator.java:52)
> at
> org.apache.aries.proxy.impl.weaving.ProxyWeavingHook.weave(ProxyWeavingHook.java:63)
> at
> org.eclipse.osgi.internal.baseadaptor.weaving.WovenClassImpl.call(WovenClassImpl.java:129)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira