You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Zehetbauer <th...@hostmaster.org> on 2004/08/30 23:02:14 UTC
XSP compile failure with JDK1.5 features
Hi,
I am trying to use the new JDK1.5 foreach loop in XSP, basically:
List entries = new ArrayList();
for (Map entry: entries) {
...
}
which causes the following error with the default EclipseJavaCompiler:
// start error (lines 1003-1003) "Syntax error on token ":", ";" expected"
for (Map entry: entries) {
// end error
or even with the Javac compiler:
/home/tomcat/work/Default/beta.hostmaster.org/_/cocoon-files/org/apache/cocoon/www/Dictionary_xsp.java:1003: ';' expected.
for (Map entry: entries) {
Cocoon is running under Tomcat 5.0.28 on j2sdk-1.5.0-beta2-b51
Tom
--
T h o m a s Z e h e t b a u e r ( TZ251 )
PGP encrypted mail preferred - KeyID 96FFCB89
finger thomasz@hostmaster.org for key
Press any key to continue or any other key to quit.