How to check if a version of a file version 50.0 (Java 6) has been previously checked?

I “updated” some jar files from the version class file from 49.0 to 50.0 using ProGuard.

Since pre-validation is optional with version 50.0, I am wondering if there is a way to check if the class file really has a StackMapTable attribute.

(Not that I don’t trust ProGuard "[...] The following options upgrade class files to Java 6, updating their internal version numbers and pre-checking them.", But I would like to know how to verify the existence of a StackMapTable.)

+7
source share
1 answer

Javaasist supports viewing tables on stack tables.

One other nugget I came across was java -XX: -FailOverToOldVerifier -Xverify: all that should only check for the presence of SMT information in a class file version 50+. However, I have not tried this, and I can’t even tell you how it might look at the output.

+3
source

All Articles