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

[lworld] multinewarray bytecode should check for ValueType inconsistency

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • hotspot

      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).

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

              Created:
              Updated:
              Resolved: