运行Groovy脚本时,控制台报:
java.lang.VerifyError: Bad <init> method call from inside of a branch
问题原因:缺陷
缺陷编号:GROOVY-6951,JDK-8051012
已知存在缺陷JVM版本:
1.7.0 update 55
1.7.0 update 65
1.7.0 update 67
1.8.0 update 11
1.8.0 update 20 (build 31 would fix it, release build is 36 though)
以上版本之前的版本可能不存在此问题
未经验证的修复版本:
1.7.0 update 72
1.8.0 update 25
及其以上以后版本
本人在1.7.0 update 79版本中验证此问题已解决