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

Hotspot reports IllegalAccessError, while OpenJ9 reports NumberFormatException

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Linux Ubuntu20.04

      openjdk version "1.8.0_402"
      OpenJDK Runtime Environment (Temurin)(build 1.8.0_402-b06)
      OpenJDK 64-Bit Server VM (Temurin)(build 25.402-b06, mixed mode)

      openjdk version "11.0.22" 2024-01-16
      OpenJDK Runtime Environment Temurin-11.0.22+7 (build 11.0.22+7)
      OpenJDK 64-Bit Server VM Temurin-11.0.22+7 (build 11.0.22+7, mixed mode)

      openjdk version "17.0.10" 2024-01-16
      OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
      OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      This test case first throws a NumberFormatException and catches it. Run the same test case with Hotspot and OpenJ9, Hotspot reports IllegalAccessError, And OpenJ9 reports NumberFormatException. Is this due to the different order of analysis in the two virtual machines, or is there a bug inside the virtual machines?

      We have uploaded the relevant test cases to Google Drive for ease of reproduction.
      <LINK>

      REGRESSION : Last worked in version 8u401

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      java-8/bin/java javaT.util.zip.InflaterInputStream.MarkReset

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Exception in thread "main" java.lang.NumberFormatException
      ACTUAL -
      Exception in thread "main" java.lang.IllegalAccessError

      ---------- BEGIN SOURCE ----------
      public class MarkReset {
          public static void main(String[] var0) throws Exception {
              try {
                  new Double("Vt-U");
              } catch (TestReplacedNodesOSR$MyException var1) {
              }
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


            dholmes David Holmes
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: