Waiting for a stackmap frame - Java 8

I get this error "Waiting for a stack frame in this place." I am using Java 8. I know that for Java 7 there is a workaround for using -XX: -UseSplitVerifier to use a less stringent check. However, this option was removed in Java 8. I was wondering if there was any other solution for this. Upgrading to Java is not an option.

0
source share
1 answer

The option -XX:-UseSplitVerifierwas designed to give the bytecode library and tool developers time to catch up and fix problems with stop-card tables. The JVM developers decided to remove this option in the latest JREs, because there was enough time to fix these tools.

Thus, the best solution is to follow this intention and use the updated tool and its options to create the correct freeze frames. Since you tagged your question , I suggest you use your flag ClassWriter.COMPUTE_FRAMESwhen creating the class file.

+2
source

Source: https://habr.com/ru/post/1656212/


All Articles