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

The result type of Class.getModifiers is labeled as a "boolean" to the optimizer instead of "int"

XMLWordPrintable

    • 1.4
    • b01
    • generic
    • generic

        There is a bug in the inlining of Class.getModifiers. The result type of Class.getModifiers is labeled as a "boolean" to the optimizer instead of "int". An inlined isFinal call masks with 16 - which against a boolean always returns a 0 (masking against an int produces the obvious extract instructions). Bug can be reproduced by running JCK test "javasoft.sqe.tests.api.java.lang.Class.GetModifiersTests -TestCaseID ALL"
        using C2 -Xcomp. A suggested fix is provided.



        ###@###.### 2005-07-15 00:08:19 GMT

              jrose John Rose
              mmma Marvin Ma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: