Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] declare annotation


Sorry Oli, there is no build available with declare annotation in
yet (although it is in CVS HEAD).  I have a successful private build
but haven't uploaded it yet - I hope to do that early next week.  An
AJDT build will take a little longer as my initial testing has
revealed a few problems when declare annotation is combined with
incremental compilation.

I will post when there is news...

Andy.




"Oli B." <boehm@xxxxxxxxxx>
Sent by: aspectj-dev-admin@xxxxxxxxxxx

12/03/2005 18:23

Please respond to
aspectj-dev@xxxxxxxxxxx

To
aspectj-dev@xxxxxxxxxxx
cc
Subject
Re: [aspectj-dev] declare annotation





Andrew Clement wrote:
>
> thats odd - it works for me... oh hang on I've not committed it yet :)
>
> Declare annotation is fully implemented and will be in a build in the
> next day or so !
>
> However, the actual syntax is:
>
> declare @type: BierWerbung: @PremiumPartner;

thanks, now it compiles. But nevertheless it seems not to work. Here my
test cases (PremiumPartner has RetentionPolicy.RUNTIME):

    public void testAnnotatedClass() {
        checkAnnotation(Artikel.class);
    }
    public void testAnnotatedAspect() {
        checkAnnotation(BierWerbung.class);
    }
    private void checkAnnotation(Class<? extends Object> cl) {
        Annotation a = cl.getAnnotation(PremiumPartner.class);
        assertNotNull(a);
    }

Yesterday I updated to the latest AJDT build - is the implementation
inside or do I have to wait for the next build?

>
> with related variants
>
> declare @method: <method sig>: @<someannotation>
> declare @constructor: <constructor sig>: @<someannotation>
> declare @field: <field sig>: @<someannotation>

thank you for the syntax - I will test it in the next days...

have a nice weekend
Oliver
--
Oliver Böhm
http://www.javatux.de

_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-dev


Back to the top