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

JIT may produce false nullPointerExceptions

    XMLWordPrintable

    Details

    • Subcomponent:
      jit
    • Resolved In Build:
      1.0.2
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Not verified

      Backports

        Description

        While running the latest HotJava1.0 with the jvm11_04 build, with the JIT
        enabled, a certain part of the browser's table processing code will
        reliably produce a bogus nullPointerException. It occurs when the
        following expression is encountered:

        hasBorder = owner.needsBorder() && !isCaption;

        one may play games with parens and with breaking the expression down into
        separate statements, but the bug persists, until the following rewrite
        is tried:

        nb=owner.needsBorder();
                tb=!isCaption;
                hasBorder = nb && tb;

        Everything then works "fine". Note: nb, tb, isCaption, and hasBorder are
        all booleans.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dmcox David Cox
                Reporter:
                duke J. Duke (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: