[kepler-dev] Java 1.5 for Kepler

Carlos Rueda carueda at ucdavis.edu
Thu Sep 27 12:44:39 PDT 2007


Hi Ilkay,

FYI, according to 
http://forum.java.sun.com/thread.jspa?threadID=656737&messageID=3859717
I changed your import to read (in my local copy):
    import org.apache.axis.constants.Style;
and the file compiles OK under 1.5.

Carlos

Carlos Rueda wrote:
> 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 ...
>        includes="org/sdm/spa/MessageBasedWebService.java"
>        source="1.4"
>    ...
> 
> and excluded it from the (modified) target:
>   <target name="compile-dev" depends="compile-dev-14"> <javac ...
>        excludes="org/sdm/spa/MessageBasedWebService.java"
>    ...
> 
> 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!
> 
> Thanks.
> Carlos
> 
> 
> 
> 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
>>     [javac] 
>> C:\work\kepler\build\src\org\sdm\spa\MessageBasedWebService.java:85:
>>  as of release 1.5, 'enum' is a keyword, and may not be used as an 
>> identifier
>>     [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
>>    
>>
>> 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
>>>
>>>   
>>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
> 


More information about the Kepler-dev mailing list