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