altEmailAddress(blank: true, nullable: true, validator: {
if (it == null || it == '') {
return true
} else {
return (User.countByEmailAddress(it) > 0 && User.countByAltEmailAddress(it) > 0)
}
}
堆栈跟踪:
测试用例:testFindValidEmailAddress 耗时 0.429 秒 导致错误 空值 java.lang.StackOverflowError 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36) 在 com.clearlyINNOVATIVE.model.User$__clinit__closure7_closure13.doCall(User.groovy:36)