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

Hotspot failed to throw the IncompatibleClassChangeError

XMLWordPrintable

    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows 10
      10.0.19042 N/A Build 19042
      Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz 1.80 GHz
      Memory 8.00 GB

      A DESCRIPTION OF THE PROBLEM :
      We found that OpenJDK 11.0.11 and 16.0.2 versions of Hotspot can throw the IncompatibleClassChangeError, while that OpenJDK 8u282 version of Hotspot can not detect IncompatibleClassChangeError (throw the output "anystring"). We think it is a bug in OpenJDK 8u282 version of Hotspot implementation.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Follow the commands in readme, the source codes are as follows:
      https://drive.google.com/drive/folders/1ZKRZanhfliw8kBW-8D8HqvDzHB3EEBD-?usp=sharing

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      [Exception in thread "main" java.lang.IncompatibleClassChangeError: Method 'java.lang.String A.get()' must be InterfaceMethodref constant, at Test.main(Test.jasm)]
      ACTUAL -
      anystring

      ---------- BEGIN SOURCE ----------
      https://drive.google.com/drive/folders/1ZKRZanhfliw8kBW-8D8HqvDzHB3EEBD-?usp=sharing
      ---------- END SOURCE ----------

            hseigel Harold Seigel (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: