[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] within(@Deprecated)?
|
Raised as bug 154332 - fix committed.
On 18/08/06, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
it is a bug - and I already have a fix.
On 17/08/06, Ron Bodkin <rbodkin@xxxxxxxxxxxxxx> wrote:
>
>
>
>
> Can anyone tell me why this compiling this program produces warnings for
> marker but not for deprecated (in a recent dev build of AJDT)? Is this just
> a bug? Both have runtime retention, so I would expect equivalent behavior.
>
>
>
> @Deprecated @Marker
>
> public aspect Annot {
>
>
>
> pointcut test() : within(@Marker *);// *);
>
>
>
> declare warning: staticinitialization(@Deprecated *): "deprecated";
>
> declare warning: staticinitialization(@Marker *): "marker";
>
>
>
> public static void main(String argz[]) {
>
> new Baz().foo();
>
> }
>
> }
>
>
>
> @Deprecated @Marker
>
> class Baz {
>
> public void foo() {}
>
> }
>
>
>
> @Retention(RetentionPolicy.RUNTIME)
>
> public @interface Marker {
>
>
>
> }
>
>
>
> AJDT output:
>
> Severity and Description Path Resource Location
> Creation Time Id
>
> marker test/src Annot.aj line 3 1155844379522 26066491
>
> marker test/src Annot.aj line 16 1155844379522 26066492
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>