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

[lworld] multinewarray bytecode should check for ValueType inconsistency

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      See

      http://cr.openjdk.java.net/~iklam/valhalla/tests_for_value_types_consistency_checks.v02/
      http://cr.openjdk.java.net/~iklam/valhalla/tests_for_value_types_consistency_checks.v02/ConsistencyTest.jtr

      In this version of the tests, ResolveArray and ResolveMultiArray has opposite behavior. Specifically:

             anewarray #2 // class Point
             multianewarray #2, 2 // class "[[LPoint;"

      The anewarray bytecode fails but the multianewarray bytecode succeeds.

      I think multianewarray should also fail (and the ResolveMultiArray test case should be fixed to reflect that).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fparain Frederic Parain
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: