This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: byte array to string conversion


Tom Tromey wrote:

"Lars" == Lars Andersen <lars@rimfaxe.com> writes:



Lars> I made a little test program, maybe someone can tell what's going on. Lars> With Sun jdk 1.4.1 on linux it outputs "toAsciiString -> Test String" Lars> With GCJ 3.3 on linux it outputs "toAsciiString -> "

Hmm, for me, both 3.3 and current cvs head work correctly.
How did you compile this program?  I tried compiling to an executable
with and without -O, and also gij with bytecode.

Tom



I discovered this after upgrading a linux install, btw. Could it be related to some kind of mixup of libraries?


Here is how i run the test :

/usr/local/bin/gcj -v

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc-3.3/configure --enable-shared --enable-threads=posix --enable-java-gc=boehm
Thread model: posix
gcc version 3.3


/usr/local/bin/gcj --main=TestStringConversion TestStringConversion.class

./a.out

toAsciiString ->


/Lars Andersen



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]