[kepler-dev] Java 1.5 for Kepler

Dan Higgins higgins at nceas.ucsb.edu
Thu Sep 27 11:46:11 PDT 2007

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

Dan Higgins                                  higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Ph: 805-893-5127
National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405
Santa Barbara, CA 93195

More information about the Kepler-dev mailing list