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

[Graal] org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest fails in -Xcomp mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot

      10 testcases from graal unittest org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest fail when running in -Xcomp with Graal used as JIT:

      testCastToArrayArray[class java.lang.String]: FAILED
      testCastToArrayArray[class java.lang.String](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...g cannot be cast to [[[Ljava/lang/]Object;> but was:<...g cannot be cast to [java.base/[[Ljava.lang.]Object;>

      testCastToStringArray[class java.lang.String]: FAILED
      testCastToStringArray[class java.lang.String](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...g cannot be cast to [[Ljava/lang/]String;> but was:<...g cannot be cast to [java.base/[Ljava.lang.]String;>

      testCastToArrayArray[class java.lang.Integer]: FAILED
      testCastToArrayArray[class java.lang.Integer](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...r cannot be cast to [[[Ljava/lang/]Object;> but was:<...r cannot be cast to [java.base/[[Ljava.lang.]Object;>

      testCastToStringArray[class java.lang.Integer]: FAILED
      testCastToStringArray[class java.lang.Integer](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...r cannot be cast to [[Ljava/lang/]String;> but was:<...r cannot be cast to [java.base/[Ljava.lang.]String;>

      testCastToArrayArray[class [I]: FAILED
      testCastToArrayArray[class [I](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...I cannot be cast to [[[Ljava/lang/]Object;> but was:<...I cannot be cast to [java.base/[[Ljava.lang.]Object;>

      testCastToStringArray[class [I]: FAILED
      testCastToStringArray[class [I](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...I cannot be cast to [[Ljava/lang/]String;> but was:<...I cannot be cast to [java.base/[Ljava.lang.]String;>

      testCastToArrayArray[class [Ljava.lang.Object;]: FAILED
      testCastToArrayArray[class [Ljava.lang.Object;](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...; cannot be cast to [[[Ljava/lang/]Object;> but was:<...; cannot be cast to [java.base/[[Ljava.lang.]Object;>

      testCastToStringArray[class [Ljava.lang.Object;]: FAILED
      testCastToStringArray[class [Ljava.lang.Object;](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...; cannot be cast to [[Ljava/lang/]String;> but was:<...; cannot be cast to [java.base/[Ljava.lang.]String;>

      testCastToArrayArray[class [[D]: FAILED
      testCastToArrayArray[class [[D](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...D cannot be cast to [[[Ljava/lang/]Object;> but was:<...D cannot be cast to [java.base/[[Ljava.lang.]Object;>

      testCastToStringArray[class [[D]: FAILED
      testCastToStringArray[class [[D](org.graalvm.compiler.replacements.test.ClassCastBytecodeExceptionTest)
      org.junit.ComparisonFailure: Exception message expected:<...D cannot be cast to [[Ljava/lang/]String;> but was:<...D cannot be cast to [java.base/[Ljava.lang.]String;>



      Tested flags: -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal -Xcomp)



            iveresov Igor Veresov
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: