byte array to string conversion

Lars Andersen lars@rimfaxe.com
Thu Sep 11 17:58:00 GMT 2003


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



More information about the Java mailing list