[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Bug #891] String java.lang.Long.toHexString(long) drops digits
From: |
Chris Benenati |
Subject: |
RE: [Bug #891] String java.lang.Long.toHexString(long) drops digits |
Date: |
Mon, 22 Jul 2002 17:03:27 -0700 |
It started working fine for me when I commented the following lines out of
java.lang.Long.toUnsignedString(long,int)
private static String toUnsignedString(long num, int exp)
{
// Use the Integer toString for efficiency if possible.
// if ((int) num == num)
// return Integer.toUnsignedString((int) num, exp);
BTW, these lines were *NOT* in the 0.03 version
> -----Original Message-----
> From: Chris Benenati [mailto:address@hidden
> Sent: Monday, July 22, 2002 4:42 PM
> To: 'address@hidden'; 'address@hidden'
> Subject: RE: [Bug #891] String java.lang.Long.toHexString(long) drops
> digits
>
>
> version of Classpath: 0.04
> compiler : javac from j2sdk1.4.0_01
> VM : ORP 1.10
>
> Worked fine for my with same configuration and Classpath 0.03
>
> BTW, where can I find jikes and gcj?
>
> > -----Original Message-----
> > From: address@hidden [mailto:address@hidden
> > Sent: Monday, July 22, 2002 3:33 PM
> > To: address@hidden; address@hidden
> > Subject: [Bug #891] String java.lang.Long.toHexString(long)
> > drops digits
> >
> >
> >
> > =================== BUG #891: LATEST MODIFICATIONS
> ==================
> > http://savannah.gnu.org/bugs/?func=detailbug&bug_id=891&group_id=85
> >
> > Changes by: Mark Wielaard <address@hidden>
> > Date: 2002-Jul-23 00:32 (Europe/Amsterdam)
> >
> > ------------------ Additional Follow-up Comments
> > ----------------------------
> > Could you give us the version of Classpath you use and the
> > compiler and VM? I tried with the current CVS version of
> > Classpath with jikes 1.16 and Kissme from CVS and with
> > gcj-3.1 (which uses the same Long class) and both print the
> > correct number (16) of 'f's.
> >
> >
> >
> > =================== BUG #891: FULL BUG SNAPSHOT ===================
> >
> >
> > Submitted by: cbenenati Project: classpath
> >
> > Submitted on: 2002-Jul-22 22:46
> > Severity: 5 - Major Resolution: None
> >
> > Assigned to: None Status: Open
> >
> > Platform Version: Windows 2000
> >
> > Summary: String java.lang.Long.toHexString(long) drops digits
> >
> > Original Submission: The following only prints 8 digits:
> >
> > class x
> > {
> > static public void main( String[] args )
> > {
> > System.out.println( Long.toHexString(0xffffffffffffffffL) );
> > }
> > }
> >
> > Follow-up Comments
> > *******************
> >
> > -------------------------------------------------------
> > Date: 2002-Jul-23 00:32 By: mark
> > Could you give us the version of Classpath you use and the
> > compiler and VM? I tried with the current CVS version of
> > Classpath with jikes 1.16 and Kissme from CVS and with
> > gcj-3.1 (which uses the same Long class) and both print the
> > correct number (16) of 'f's.
> >
> >
> >
> >
> > No files currently attached
> >
> >
> > For detailed info, follow this link:
> > http://savannah.gnu.org/bugs/?func=detailbug&bug_id=891&group_id=85
>