Commit 386e9d40 by Andrew Haley

AnnotationInvocationHandler.java: Generify in a few places.

2007-03-02  Andrew Haley  <aph@redhat.com>

        * sun/reflect/annotation/AnnotationInvocationHandler.java:
        Generify in a few places.
        (equals): Rewrite to use invoke on local proxy.
        (deepToString): Remove most of it.
        (toString): Make nonstatic.
        (arrayClone): Delete.
        (coerce): New method.
        (invoke): Rewrite to handle gcj's structures correctly.
        * java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
        null loader.
        * sources.am: Regenerate.
        * Makefile.am: Likewise.

From-SVN: r122485
parent 6e7e772d
...@@ -1331,9 +1331,8 @@ java::lang::Class::getDeclaredAnnotations(jint /* jv_attr_type */ member_type, ...@@ -1331,9 +1331,8 @@ java::lang::Class::getDeclaredAnnotations(jint /* jv_attr_type */ member_type,
if (bytes == NULL) if (bytes == NULL)
return 0; return 0;
ClassLoader *trueLoader = loader; if (loader == NULL)
if (trueLoader == NULL) loader = (ClassLoader *)VMClassLoader::bootLoader;
trueLoader = (ClassLoader *)VMClassLoader::bootLoader;
result = (loader->getDeclaredAnnotations result = (loader->getDeclaredAnnotations
(this, member_type, member_index, kind_req)); (this, member_type, member_index, kind_req));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment