summaryrefslogtreecommitdiffstats
path: root/libjava/java/lang/Class.java
diff options
context:
space:
mode:
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-21 16:18:08 +0000
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-21 16:18:08 +0000
commit74301837842e62270719ee2e5fa3abca6f497792 (patch)
tree8ba92a066883da898010d22e9eada90fb4b695b1 /libjava/java/lang/Class.java
parentc37bea1361b837bfa6083070c1f48916acb2fe73 (diff)
downloadppe42-gcc-74301837842e62270719ee2e5fa3abca6f497792.tar.gz
ppe42-gcc-74301837842e62270719ee2e5fa3abca6f497792.zip
2006-11-21 Gary Benson <gbenson@redhat.com>
* java/security/Security.java: Merge with classpath. * java/lang/Package.java: Likewise. * java/lang/Class.java (getDeclaredAnnotations): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/Class.java')
-rw-r--r--libjava/java/lang/Class.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/java/lang/Class.java b/libjava/java/lang/Class.java
index 75819e868f9..f301f358427 100644
--- a/libjava/java/lang/Class.java
+++ b/libjava/java/lang/Class.java
@@ -40,6 +40,7 @@ package java.lang;
import java.io.InputStream;
import java.io.Serializable;
+import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.GenericDeclaration;
@@ -949,6 +950,23 @@ public final class Class implements Type, GenericDeclaration, Serializable
}
/**
+ * Returns all annotations directly defined by this class. If there are
+ * no annotations associated with this class, then a zero-length array
+ * will be returned. The returned array may be modified by the client
+ * code, but this will have no effect on the annotation content of this
+ * class, and hence no effect on the return value of this method for
+ * future callers.
+ *
+ * @return the annotations directly defined by this class.
+ * @since 1.5
+ */
+ public Annotation[] getDeclaredAnnotations()
+ {
+ // FIXME write real implementation
+ return new Annotation[0];
+ }
+
+ /**
* Returns the class which immediately encloses this class. If this class
* is a top-level class, this method returns <code>null</code>.
*
OpenPOWER on IntegriCloud