【发布时间】:2010-10-22 21:08:45
【问题描述】:
正如this thread 所示,使用新的 Jetty 服务器在 GWT 托管模式下编译 JSP 似乎存在问题:
2. ERROR in /tmp/Jetty_0_0_0_0_8080_war____ut4fm1/jsp/org/apache/jsp/
test_jsp.java (at line 53)
new java.util.ArrayList<String>();
^^^^^^
Syntax error, parameterized types are only available if source level
is 1.5
有人有解决方法吗? this commit 可能是相关的。我不知道应该使用与 org.eclipse.jdt.core.JDTCompilerAdapter 等效的内容在 Eclipse 之外进行构建(例如在命令行上)。这对于我们采用 GWT 1.6 来说是一个真正的障碍,因此非常感谢任何指针。
【问题讨论】: