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:
parent
6e7e772dce
commit
386e9d408b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user