当我构建用于部署的 war 文件(ant war)时,GWT 编译器的行为就好像它从未听说过 java.io.Reader 或 java.io.BufferedReader。当我为devmode(ant javac)进行开发构建时,它们构建得很好。我正在使用 GWT 2.4.0。有谁知道发生了什么?
gwtc:
[java] Compiling module com.foo.Foo
[java] Validating newly compiled units
[java] [ERROR] Errors in 'file:[...]/Foo/src/com/foo/shared/ReaderLineIterator.java'
[java] [ERROR] Line 13: No source code is available for type java.io.BufferedReader; did you forget to inherit a required module?
[java] [ERROR] Line 21: No source code is available for type java.io.Reader; did you forget to inherit a required module?
[java] [ERROR] Aborting compile due to errors in some input files
BUILD FAILED