[gcj trunk / gnu-classpath] String.format(...) undefined

Andrew Haley aph@redhat.com
Wed Feb 21 12:19:00 GMT 2007


Hanno Meyer-Thurow writes:
 > On 2007年2月21日 12:03:59 +0000
 > Andrew Haley <aph@redhat.com> wrote:
 > 
 > > > Tom Tromey <tromey@redhat.com> wrote:
 > 
 > > > > >>>>> "Hanno" == Hanno Meyer-Thurow <h.mth@web.de> writes:
 > 
 > > > > Hanno> java::lang::Class::getDeclaredAnnotations (this=0x2b2a567d9a00, member_type=0, member_index=0, kind_req=3)
 > 
 > > > > Could you print the 'name' field of this Class?
 > > > > Then we'll want to see the source or .class file for this, assuming it
 > > > > isn't in libgcj...
 > 
 > > p (char*)name->data
 > 
 > (gdb) p (char*)name->data
 > 7ドル = 0x2b25dd624a04 "java.lang.Object"
Try this
Index: natClass.cc
===================================================================
--- natClass.cc	(revision 122039)
+++ natClass.cc	(working copy)
@@ -1335,7 +1335,7 @@
 if (trueLoader == NULL)
 trueLoader = (ClassLoader *)VMClassLoader::bootLoader;
 
- result = (loader->getDeclaredAnnotations
+ result = (trueLoader->getDeclaredAnnotations
 	 (this, member_type, member_index, kind_req));
 if (result)
 return result;
@@ -1376,7 +1376,7 @@
 break;
 }
 
- return (loader->putDeclaredAnnotations
+ return (trueLoader->putDeclaredAnnotations
 	 (this, member_type, member_index, kind_req, result));
 }
 


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /