From 13e2263ead2583b1be4a7329611c45e233d04db0 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 10 Mar 2005 12:06:12 +0000 Subject: [PATCH] Declare annotation: added @Target as a well known type --- weaver/src/org/aspectj/weaver/TypeX.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weaver/src/org/aspectj/weaver/TypeX.java b/weaver/src/org/aspectj/weaver/TypeX.java index b17f7a6fa..2b046a370 100644 --- a/weaver/src/org/aspectj/weaver/TypeX.java +++ b/weaver/src/org/aspectj/weaver/TypeX.java @@ -589,6 +589,7 @@ public class TypeX implements AnnotatedElement { public static final TypeX JAVA_LANG_EXCEPTION = forSignature("Ljava/lang/Exception;"); public static final TypeX JAVA_LANG_REFLECT_METHOD = forSignature("Ljava/lang/reflect/Method;"); public static final TypeX SUPPRESS_AJ_WARNINGS = forSignature("Lorg/aspectj/lang/annotation/SuppressAjWarnings;"); + public static final TypeX AT_TARGET = forSignature("Ljava/lang/annotation/Target;"); // ---- helpers @@ -720,6 +721,9 @@ public class TypeX implements AnnotatedElement { } } + /** + * Doesn't include the package + */ public String getClassName() { String name = getName(); int index = name.lastIndexOf('.'); -- 2.39.5