当我遇到此错误时,我正在尝试预编译 play 1.2.5 项目:
Compilation error (In /app/controllers/api/Drivers.java around line 168)
The file /app/controllers/api/Drivers.java could not be compiled.
Error raised is : driverResume cannot be resolved or is not a field
play.exceptions.CompilationException: driverResume cannot be resolved or is not a field
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:676)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:520)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:426)
at play.Play.preCompile(Play.java:593)
at play.Play.init(Play.java:299)
at play.server.Server.main(Server.java:159)
driverResume 字段是公共的并且在 Driver 类中可见。
我用 jdk 1.6.0 在不同的计算机上尝试过,但总是遇到同样的异常。
有谁知道如何获得有关预编译过程、编译器逻辑的更多信息,或者已经遇到过此类问题?