Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Usage question

On Mon, Apr 15, 2013 at 1:39 PM, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
I presume the 'type not exposed to weaver' messages were for your types and not for JRE types?

That's correct.
 
If we could distill down a simple scenario that displayed this problem, I am happy to debug into it.

Thanks. I have built a test case that demonstrates the problem (attached).

For some reason in my test case I'm not seeing the 'type not exposed to weaver' message... however, I am seeing the actual problem, which is that certain aspects are not getting woven.

I wrote a small script to verify expected weaving. On my system the build failure then looks like this:

        ...
     [iajc] info Compiler took 980ms
     [touch] Creating /Users/archie/bugs/aspectjweavebug/build/weaving.timestamp
     [exec] Verifying @Transactional classes got woven with AnnotationTransactionAspect...
     [exec] Verifying @Transactional classes got woven with MyAspect...
     [exec] Verifying @Configurable classes got woven with AnnotationBeanConfigurerAspect...
     [exec] Error: com/example/sub1/C contains @Configurable but did not get woven with AnnotationBeanConfigurerAspect
     [exec] Error: com/example/sub2/C contains @Configurable but did not get woven with AnnotationBeanConfigurerAspect
     [exec] Verifying @VaadinConfigurable classes got woven with VaadinConfigurableAspect...
     [exec] Error: com/example/D contains @VaadinConfigurable but did not get woven with VaadinConfigurableAspect
     [exec] Error: com/example/sub1/D contains @VaadinConfigurable but did not get woven with VaadinConfigurableAspect
     [exec] Error: com/example/sub2/D contains @VaadinConfigurable but did not get woven with VaadinConfigurableAspect
     [exec] Error: com/example/sub3/D contains @VaadinConfigurable but did not get woven with VaadinConfigurableAspect
     [exec] Error: com/example/sub4/D contains @VaadinConfigurable but did not get woven with VaadinConfigurableAspect

Thanks,
-Archie

--
Archie L. Cobbs

Attachment: aspectjweavebug.tgz
Description: GNU Zip compressed data


Back to the top