Is this a bug?

Martin Kahlert martin.kahlert@infineon.com
Fri Sep 6 00:05:00 GMT 2002


Hi Tom!

On Thu, Sep 05, 2002 at 09:40:11AM -0600, tromey@redhat.com wrote:
> >>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:
> 
> Martin> Another funny thing:
> Martin> public class hello
> Martin> {
> Martin>     final static long a = 1000000000;
> Martin>     final static long c = 1000L * a;
> Martin>         System.out.println("c = " + c);
> 
> Martin> prints:
> Martin> c = 0xe8d4a51000
> 
> Martin> The hex output is strange...
> 
> I think this was fixed by this patch:
> 
> 2002-04-27  Tom Tromey  <tromey@redhat.com>
> 
> 	For PR java/6382:
> 	* parse.y (string_convert_int_cst): New function.
> 	(merge_string_cste): Use it.
> 
> I don't see the hex output with my build.

Do you use the mainline? The hex bug happens with
the snapshot 20020902 (and gcc-3.2 release).
gcj -v says: gcc version 3.2.1 20020902 (prerelease)

I use GNU libc stable release version 2.2.2 on a linux box.
Even stranger: Using gcj 3.2 (release) the example works
on Solaris 2.7 but fails on Solaris 2.5.1.

Can anyone else see the problem on Linux?

Very strange...

Regards
Martin.

-- 
The early bird catches the worm. If you want something else for       
breakfast, get up later.



More information about the Java mailing list