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

x==x fails in conditional operator

    Details

    • Subcomponent:
      jit
    • CPU:
      x86
    • OS:
      solaris_2.5.1

      Description



      Name: dkC59003 Date: 11/18/98



      The following trivial sample demonstrates severe error
      in (u?v:w) operator under JDK1.2-fcs(R)/x86/JIT:

      ---

      class fpm03504_bug1 {
          static void main (String args[]) {
      float x = 1f;
      System.out.println(x==x? "x==x": "x!=x");
          }
      }

      java fpm03504_bug1
      x!=x

      ---

      This error only arises, when conditional expression is
      used within method invocation.

      The error does not arise, when JIT is off.

      This error seems to apppear since JDK 1.2beta / x86 / JIT.

      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dkhukhrosunw Dmitry Khukhro (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: