How to check if a class file version 50.0 (Java 6) has been preverified?

I "upgraded" some jar files from class file version 49.0 to 50.0 with ProGuard.

Because preverification is optional with version 50.0, I wonder if there is a way to check if the class file has really an StackMapTable attribute in it.

(It's not that I don't trust ProGuard "[...] The following options upgrade class files to Java 6, by updating their internal version numbers and preverifying them." but I'd like to learn how to verify the existance of the StackMapTable.)


Javaasist has support for reviewing stack map tables.

The one other nugget I came across was java -XX:-FailOverToOldVerifier -Xverify:all which should only verify if there is SMT information in a 50+ version class file. However, I haven't tried that and cant even tell you what it might look like on output.

链接地址: http://www.djcxy.com/p/7194.html

上一篇: 如何控制Chrome浏览器

下一篇: 如何检查类文件版本50.0(Java 6)是否已经过预验证?