Re: [aspectwerkz-user] Interface org.codehaus.aspectwerkz.annotation.Annotation is not visible from class loader

Alexandre Vasseur <[email protected]> Thu, 19 May 2005 12:38:26 +0200
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
The test suite is fine on  1.5.0_03-b07
Can you reproduce it ?

Thanks
Alex

On 5/17/05, Michael Nascimento <[email protected]> wrote:
> Basically, this is not true anymore :-)
> 
> If you read java.lang.reflect.Proxy sources, you'll see that it tries
> to read the class _again_ using the ClassLoader argument and it throws
> an exception because it can load another class with the same name
> using the ClassLoader.
> 
> Could you try to run AW unit tests in JDK 1.5.0_03? I guess they
> should fail as well. If they don't, then the cause of the error is
> much worse than I think :-)
> 
> Regards,
> Michael
> 
> On 5/17/05, Alexandre Vasseur <[email protected]> wrote:
> > Hi
> >
> > If you can send a test case for that i.e. reproduce it that would
> > perhaps help. This error means that the classloader of the annotation
> > proxy we are building cannot see one interface that the proxy is asked
> > to implement (here AW Annotation).
> >
> > Alex
> >
> > On 5/14/05, Michael Nascimento <[email protected]> wrote:
> > > Hi folks,
> > >
> > > This happens when I try to call Annotations.getAnnotations(..) running
> > > with JDK 1.5.0_03:
> > >
> > > java.lang.IllegalArgumentException: interface
> > > org.codehaus.aspectwerkz.annotation.Annotation is not visible from
> > > class loader
> > >    at java.lang.reflect.Proxy.getProxyClass(Proxy.java:345)
> > >    at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:564)
> > >    at org.codehaus.aspectwerkz.annotation.Java5AnnotationInvocationHandler.getAnnotationProxy(Java5AnnotationInvocationHandler.java:169)
> > >    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.getAnnotationInfo(AsmAnnotationHelper.java:304)
> > >    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.extractAnnotations(AsmAnnotationHelper.java:280)
> > >    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper$MethodAnnotationExtractor.visitMethod(AsmAnnotationHelper.java:126)
> > >    at org.codehaus.aspectwerkz.org.objectweb.asm.ClassReader.accept(Unknown
> > > Source)
> > >    at org.codehaus.aspectwerkz.reflect.impl.asm.AsmMethodInfo.getAnnotations(AsmMethodInfo.java:213)
> > >    at org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotations.getAnnotations(AsmAnnotations.java:127)
> > >    at org.codehaus.aspectwerkz.annotation.Annotations.getAnnotations(Annotations.java:168)
> > >
> > > Has anyone seen this?
> > >
> > > Regards,
> > > Michael
> > >
> >
>