Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1239378

fp.bugs 3559 jdb : Agent retrieves wrong value from stack for float

    XMLWordPrintable

Details

    • 1.0.2
    • sparc
    • solaris_2.5
    • Not verified

    Description

      >From: Jean-Paul Buu-Sao <###@###.###>
      This does not look like form output to me.


      1. OS
      WinNT 3.51 - Windows 95

      2. VERSION
      JDK 1.0

      3. DESCRIPTION
      Agent retrieves wrong value from stack for float on Intel plateform.

      4. STEPS TO REPRODUCE
      Given test7.java:
            public class test7
            {
              public static void main( String argv[] )
              {
                float i = ( float )4;
                System.out.println( i );
                i++;
                System.out.println( i );
              }
            }

      Session log:

      C:\\tests>jdb test7
      Initializing jdb...
      0x1045530:class(test7)
      > stop at test7:6
      Breakpoint set at test7:6
      > run
      run test7
      running ...

      Breakpoint hit: test7.main (test7:6)
      main[1] main[1] locals
      Local variables and arguments:
        argv = [Ljava.lang.String;@1046b58
        i = 0
      >>> SHOULD DISPLAY: i = 4.0

      Attachments

        Activity

          People

            tballsunw Tom Ball (Inactive)
            bhagen Benjamin Hagen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: