Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] @SuppressAjWarnings for aspectj syntax (ie, non @Aspect syntax)

#: Barry Kaplan changed the world a bit at a time by saying (astral date: 3/5/2006 9:12 PM) :#
I get warnings at two places. For the second, the suppress works. But not for the first.

public aspect EntityManagerFactoryBeanOptimizerAspect {

    @SuppressAjWarnings
    pointcut postProcessAnnotationConfiguration():
W execution(* AnnotationSessionFactoryBean+.postProcessAnnotationConfiguration(..))
        && target(EntityManagerFactoryBean);
@SuppressAjWarnings
W    void around(): ejb3ConfigurationConstructor()
    {
        // Prevent from initializing half the jboss server
    }

}
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


I think this is according to Adrian's comment: "annotate advice declaration (not pointcut)".

./alex
--
.w( the_mindstorm )p.



Back to the top