[kepler-dev] Java 1.5 for Kepler
carueda at ucdavis.edu
Thu Sep 27 12:16:59 PDT 2007
Hello Dan, Ilkay,
Right, I just did a quick check of recompiling everything and it seems
MessageBasedWebService.java is the only file that needs the
source="1.4" flag: I only included it in a new target:
<target name="compile-dev-14"> <javac ...
and excluded it from the (modified) target:
<target name="compile-dev" depends="compile-dev-14"> <javac ...
Compilation completes successfully. Also, I don't expect any binary
compatibility problem with the apache axis dpendency, but I guess it
would be better to update that dependency as well.
Great that you have brought up this topic!
Dan Higgins wrote:
> Hi Ilkay,
> I did run into a problem in compiling Kepler without the 'source
> 1.4' setting. I get the error
> [javac] Compiling 915 source files to C:\work\kepler\build\classes
> as of release 1.5, 'enum' is a keyword, and may not be used as an
> [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
> [javac] import org.apache.axis.enum.Style;
> [javac] ^
> [javac] 1 error
> It looks like the MessageBasedWebService actor calls an axis class that
> has 'enum' in the path and Java 1.5 does not like that! So it looks like
> the axis package we are using is pre Java 1.5. Is there a fix for this?
> (I am assuming you are familiar with this code.)
> Dan Higgins wrote:
>> Hi All,
>> As you may well know, current Kepler builds are based on Java 1.4.
>> The ant build file allows the use of Java 1.5 but the '-source' command
>> line option is set to '1.4'.
>> Several developers have wanted to use some Java features (e.g.
>> generics) that are present in Java 1.5 but not in Java 1.4. Since Java
>> 1.5 is readily available for Windows, Mac, and Linux, I do not see any
>> problems with simply dropping the '-source 1.4' switch from the compiler
>> command line and making 1.5 the default version of Java for Kepler. Does
>> anyone out there object to this, or know of some problems that may occur?
>> Dan Higgins
More information about the Kepler-dev