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

[jittester] generated tests may not compile by javac

    Details

    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        When running "make install" with JITTester default parameters (seed=SEED2) one of the tests "java_tests/Test_46.java" fails in JTREG with Compilation error.

        If we try to compile "java_tests/Test_46.java" manually by javac, it also fails to compile:

        username@localhost:~$ /home/jenkins/oracle_jdk_9/linux-amd64/bin/javac -cp /home/ezulu/JITTesterGen/jittester/ws/hotspot/test/ -d . /home/ezulu/JITTesterGen/jittester/ws_SEED2/hotspot/test/java_tests/Test_46.java
        /home/ezulu/JITTesterGen/jittester/ws_SEED2/hotspot/test/java_tests/Test_46.java:750: error: incompatible types: Runnable cannot be converted to Test_46_Class_0
                    final java.util.HashSet var_131 = ((!true | 619213846 << var_126-- > + (var_53 = var_51) ? true : true) ? (Test_46_Class_0)(var_128 = (Test_46_Class_1)(var_109 = new java.lang.Byte((byte) 55))) : (Test_46_Class_0)(var_107 = "qtsr")).var_2 = (new Test_46_Class_0().var_2 = new java.util.HashSet()); /* 27 */
                                                                                                                                               ^
        /home/ezulu/JITTesterGen/jittester/ws_SEED2/hotspot/test/java_tests/Test_46.java:772: error: incompatible types: Runnable cannot be converted to Test_46_Class_0
                        java.lang.Byte var_137 = java.lang.Byte.valueOf("xydhrsx" + ("exhr" + (var_124 = "qlbt")), ((Test_46_Class_0)(Test_46_Class_0)(var_128 = (Test_46_Class_1)(Test_46_Class_1)(Test_46_Class_1)(java.lang.Runnable)(var_128 = (var_128 = (Test_46_Class_2)var_109)))).var_1 /= var_125 % (var_129 = (var_49 = (byte) 117))); /* 27 */
                                                                                                                                                      ^
        Note: /home/ezulu/JITTesterGen/jittester/ws_SEED2/hotspot/test/java_tests/Test_46.java uses or overrides a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: /home/ezulu/JITTesterGen/jittester/ws_SEED2/hotspot/test/java_tests/Test_46.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        2 errors

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  iignatyev Igor Ignatyev
                  Reporter:
                  kshefov Konstantin Shefov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: