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
This commit is contained in:
Andrew Haley 2007-03-02 19:34:18 +00:00
parent 6e7e772dce
commit 386e9d408b
1 changed files with 2 additions and 3 deletions

View File

@ -1331,9 +1331,8 @@ java::lang::Class::getDeclaredAnnotations(jint /* jv_attr_type */ member_type,
if (bytes == NULL)
return 0;
ClassLoader *trueLoader = loader;
if (trueLoader == NULL)
trueLoader = (ClassLoader *)VMClassLoader::bootLoader;
if (loader == NULL)
loader = (ClassLoader *)VMClassLoader::bootLoader;
result = (loader->getDeclaredAnnotations
(this, member_type, member_index, kind_req));