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

Mark Wielaard mark@klomp.org
Sat Feb 17 21:28:00 GMT 2007

On Sat, 2007-02-17 at 22:10 +0100, Mark Wielaard wrote:
> I am testing the attached patch that syncs up String, StringBuffer,
> StringBuilder and Character to the latest GNU Classpath versions,
> bringing in some new methods, some bug fixes and some indentation
> cleanups. But it takes a while to compile it all since some usage of cni
> needs to be adjusted for the changes in argument and return types.

Unfortunately it seems the new bridge methods confuse something:

java/.libs/lang.o: In function `int java::lang::String::compareTo(java::lang::Object*)':
/home/mark/src/gcc-4_1-branch-java-merge-20070117/libjava/java/lang/String.java:1: multiple definition of `int java::lang::String::compareTo(java::lang::Object*)'
java/lang/.libs/natString.o:/home/mark/src/gcc-4_1-branch-java-merge-20070117/libjava/java/lang/natString.cc:711: first defined here
/usr/bin/ld: Warning: size of symbol `int java::lang::String::compareTo(java::lang::Object*)' changed from 146 in java/lang/.libs/natString.o to 29 in java/.libs/lang.o
collect2: ld returned 1 exit status
make[1]: *** [libgcj.la] Error 1

What would be a good way to fix this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20070217/25591178/attachment.sig>

More information about the Java mailing list