From 432730b783ee42afa25911017b45cdba2cb0a162 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Thu, 15 Jul 2021 20:09:21 +0200 Subject: [PATCH] [java.lang] add AccessibleObject (#145) * add AccessibleObject Signed-off-by: Jan N. Klug * fixes and additions Signed-off-by: Jan N. Klug --- libraries/java/java/lang/Class.eea | 4 ++-- .../java/lang/reflect/AccessibleObject.eea | 19 +++++++++++++++++++ libraries/java/java/lang/reflect/Method.eea | 4 ++-- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 libraries/java/java/lang/reflect/AccessibleObject.eea diff --git a/libraries/java/java/lang/Class.eea b/libraries/java/java/lang/Class.eea index 5b553d985..d2ef2e098 100644 --- a/libraries/java/java/lang/Class.eea +++ b/libraries/java/java/lang/Class.eea @@ -22,7 +22,7 @@ getAnnotatedSuperclass ()L0java/lang/reflect/AnnotatedType; getAnnotation (Ljava/lang/Class;)TA; - (L1java/lang/Class;)TA; + (L1java/lang/Class;)T0A; getAnnotations ()[Ljava/lang/annotation/Annotation; ()[1L1java/lang/annotation/Annotation; @@ -49,7 +49,7 @@ getConstructors ()[1L1java/lang/reflect/Constructor<*>; getDeclaredAnnotation (Ljava/lang/Class;)TA; - (L1java/lang/Class;)T1A; + (L1java/lang/Class;)T0A; getDeclaredAnnotations ()[Ljava/lang/annotation/Annotation; ()[1L1java/lang/annotation/Annotation; diff --git a/libraries/java/java/lang/reflect/AccessibleObject.eea b/libraries/java/java/lang/reflect/AccessibleObject.eea new file mode 100644 index 000000000..5fbe88743 --- /dev/null +++ b/libraries/java/java/lang/reflect/AccessibleObject.eea @@ -0,0 +1,19 @@ +class java/lang/reflect/AccessibleObject +getAnnotation + (Ljava/lang/Class;)TT; + (L1java/lang/Class;)T0T; +getAnnotations + ()[Ljava/lang/annotation/Annotation; + ()[1L1java/lang/annotation/Annotation; +getAnnotationsByType + (Ljava/lang/Class;)[TT; + (L1java/lang/Class;)[1T1T; +getDeclaredAnnotation + (Ljava/lang/Class;)TT; + (L1java/lang/Class;)T0T; +getDeclaredAnnotations + ()[Ljava/lang/annotation/Annotation; + ()[1L1java/lang/annotation/Annotation; +getDeclaredAnnotationsByType + (Ljava/lang/Class;)[TT; + (L1java/lang/Class;)[1T1T; diff --git a/libraries/java/java/lang/reflect/Method.eea b/libraries/java/java/lang/reflect/Method.eea index 5991721d5..bedaedddd 100644 --- a/libraries/java/java/lang/reflect/Method.eea +++ b/libraries/java/java/lang/reflect/Method.eea @@ -1,7 +1,7 @@ class java/lang/reflect/Method equals (Ljava/lang/Object;)Z - (Ljava/lang/Object;)Z + (L0java/lang/Object;)Z getAnnotatedReturnType ()Ljava/lang/reflect/AnnotatedType; ()L1java/lang/reflect/AnnotatedType; @@ -46,7 +46,7 @@ getTypeParameters ()[1L1java/lang/reflect/TypeVariable; invoke (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; - (L0java/lang/Object;[0L0java/lang/Object;)L0java/lang/Object; + (L1java/lang/Object;[0L0java/lang/Object;)L0java/lang/Object; toGenericString ()Ljava/lang/String; ()L1java/lang/String;