java.lang.VerifyError: Bad type on operand stack 问题

java.lang.VerifyError: Bad type on operand stack 问题_第1张图片

今天同事报了这个错误 ,但是自己的电脑运行良好 ,经检查

ClnHearAboutPath aboutPath = null;
if (hearPathSecond != null) {
	aboutPath = EbeanUtil.getById(ClnHearAboutPath.class, hearPathSecond);
	clnPatient.clnHearAboutPath = aboutPath;
}else{
	clnPatient.clnHearAboutPath = aboutPath;
}

这个写法改成 :

ClnHearAboutPath aboutPath = null;
if (hearPathSecond != null) {
	aboutPath = EbeanUtil.getById(ClnHearAboutPath.class, hearPathSecond);
	clnPatient.clnHearAboutPath = aboutPath;
}else{
	clnPatient.clnHearAboutPath = null;
}

就没问题了 ,clnPatient.clnHearAboutPath = null

应该是jdk的一个bug, 编译能够成功 ,但运行时会有问题

你可能感兴趣的:(java.lang.VerifyError: Bad type on operand stack 问题)