[aspectwerkz-user] Weaving private methods

"Bygrave, Graham BGI UK" <[email protected]> Thu, 2 Jun 2005 14:14:40 +0100
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <03D8E4DA4B752943B2F3F073ABDAE836304218@ldnnte2k032.insidelive.net>
I'm trying to weave private methods and yet I get a an IllegalAccessError when aspectwerkz generated classes try to call them - not surprising given that the call seems to be direct (i.e. not using reflection).  Is there any way around this?

Thanks,
Graham.

java.lang.IllegalAccessError: tried to access method weblogic.security.acl.internal.AuthenticatedSubject.<init>(Z)V from class weblogic.security.acl.internal.AuthenticatedSubject_4__86728660__1385029237__253649152___AW_JoinPoint
        at weblogic.security.acl.internal.AuthenticatedSubject_4__86728660__1385029237__253649152___AW_JoinPoint.invoke(Unknown Source)
        at weblogic.security.acl.internal.AuthenticatedSubject.<clinit>(AuthenticatedSubject.java:29)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at weblogic.security.service.SecurityServiceManager_4_834538669_1818100967__253649152___AW_JoinPoint.aw$staticinitialization(Unknown Source)
        at weblogic.security.service.SecurityServiceManager_4_834538669_1818100967__253649152___AW_JoinPoint.<clinit>(Unknown Source)
        at weblogic.security.service.SecurityServiceManager.initializeKernelID(SecurityServiceManager.java:1071)
        at weblogic.security.service.SecurityServiceManager.<clinit>(SecurityServiceManager.java:82)
        at weblogic.security.service.PrivilegedActions$GetKernelIdentityAction.run(PrivilegedActions.java:45)
        at java.security.AccessController.doPrivileged(Native Method)
        at weblogic.t3.srvr.T3Srvr.<clinit>(T3Srvr.java:161)
        at weblogic.Server.main(Server.java:32)