[ http://issues.apache.org/jira/browse/COCOON-1251?page=all ]

Ralph Goers updated COCOON-1251:
--------------------------------

    Bugzilla Id:   (was: 30971)
      Component: Blocks: XSP
                     (was: Blocks: (Undefined))
    Description: 
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.

  was:
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.


> XSP compile failure when using Java 1.5 features
> ------------------------------------------------
>
>          Key: COCOON-1251
>          URL: http://issues.apache.org/jira/browse/COCOON-1251
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: XSP
>     Versions: 2.1.5
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: Thomas Zehetbauer
>     Assignee: Antonio Gallardo

>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to