cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: XSP compile failure when using JDK1.5 features
Date Tue, 31 Aug 2004 21:20:47 GMT
Thomas Zehetbauer wrote:

> On Die, 2004-08-31 at 14:39 -0500, Tony Collen wrote:
>>There's already a bug filed against cocoon for java 1.5 compatibility. 
>>you might want to look into that.  i don't think anyone's really checked 
>>into the actual cause of the problem yet though.
> The bugs I have found are related to building Cocoon with JDK 1.5; I am
> trying to use Java 1.5 features with (JDK 1.4 compiled) Cocoon running
> on JDK 1.5; Filed a new bug:

Just so you know there is a performance penalty with running JDK 1.4 (or
prior) code on a 1.5 VM.  However for something like a server, those
penalties will eventually go away as the system is hot-spot compiled.

Here are some things I have found with 1.5:

1) Java 1.5 has changed the class format.  It is incompatible with prior

2) Java 1.5 can run 1.4 code, but the reverse is not true.  You said you
    were running Java 1.5 though...

3) If you are running Java 1.5 beta 1, the compiler defaults to
    "-source 1.4"... meaning you have to explicitly tell it that you are
    using "-source 1.5"

If you don't have Java2 5 (Java 1.5) beta 2 installed, try that and use
the compiler from that JDK.


"Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the Universe trying to 
produce bigger and better idiots. So far, the Universe is winning."
                 - Rich Cook

View raw message