2013-04-01 178 views
0

我试图预编译戏1.2.5项目时,我有这样的错误:播放框架CompilationException

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场是公开的,可见的驱动程序类。

我在不同的计算机上用jdk 1.6.0试过,我总是得到相同的异常。

有谁知道如何获得关于预编译过程,编译器逻辑的更多信息,或者已经遇到这种问题?

+0

你可以发布'Drivers.java'的一些部分吗?也就是说,你在哪里定义'driverResume',类声明和错误发生的地方(最好是整个控制器方法)。 – Todd

+0

driverResume的类型是什么?该类型是否有编译器错误? –

回答

0

看起来这可能是一个问题,你错误地阅读编译错误。编译器正在抱怨Drivers类,并且您说该字段在Driver(不是Drivers)类中是公共的。

难道这是问题吗?