2
我有这个自动生成的代码行:Groovy的:意外令牌“:”
EPRole validator: { EPRole r, EPUserEPRole ur ->
if (ur.EPUser == null) return
boolean existing = false
EPUserEPRole.withNewSession {
existing = EPUserEPRole.exists(ur.EPUser.id, r.id)
}
if (existing) {
return 'userRole.exists'
}
}
当我尝试编译代码我得到82: unexpected token: validator @ line 82, column 10.
我在常规新,所以任何帮助表示赞赏。
应该是epRole? EPRole将是类 – cfrick 2015-03-02 22:11:31
啊,现在我明白了。整个班级都是自动生成的,你说的错误取决于资本和小案例。我如何接受你的答案是正确的? – bel 2015-03-02 22:19:43