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

JIT may produce false nullPointerExceptions

XMLWordPrintable

    • jit
    • 1.0.2
    • sparc
    • solaris_9
    • Not verified

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: