Java 7 JVM VerifyError in Eclipse

后端 未结 4 1980
独厮守ぢ
独厮守ぢ 2020-12-05 02:32

When I compile my project in eclipse indigo using JDK 7, I get the following error dialog

\"enter

4条回答
  •  自闭症患者
    2020-12-05 02:52

    Bug 353467 speaks about "using -XX:-UseSplitVerifier to activate the old verifier".
    That is consistent with the JDK TM 6 Adoption Guide which describes that option as:

    Traditional verifier can be forced with the -XX:-UseSplitVerifier flag.

    Missing or incorrect StackMapTable attributes for version 50.0 class files can result in VerifyError exceptions.
    Tools that rewrite bytecode in version 50.0 class files and do not correctly update the StackMapTable may fail to verify and trigger exceptions.

    So the comment from 2011-10-03 does point out that:

    AspectJ now auto activates the previously optional setting to create stackmaps if the classes are Java7.

提交回复
热议问题