axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WAJSBERG Julien RD-BIZZ <julien.wajsb...@francetelecom.com>
Subject Re: "JRE 1.5 "enum" is a Reserved Word" Does Axis Comply withthis rule?
Date Mon, 07 Feb 2005 08:50:41 GMT
Maybe I'm wrong, but I thought that old code (< JRE1.5) would still work 
with new code (JRE 1.5).


Tardif, Sebastien a écrit :

>I think so.
>
>JRE 1.5 brings performance improvement which by himself is significant. Without JRE 1.5
support that mean the "business codes"  will need to exclude all the new language feature
of 1.5. 
>
>What is the status of the work done on TCK?
>
> -----Original Message-----
>From: 	Davanum Srinivas [mailto:davanum@gmail.com] 
>Sent:	Friday, February 04, 2005 1:19 PM
>To:	axis-dev@ws.apache.org
>Subject:	Fwd: "JRE 1.5 "enum" is a Reserved Word" Does Axis Comply withthis rule?
>
>Glen, Tom,
>
>Should we take care of this before we cut an RC?
>
>-- dims
>
>
>---------- Forwarded message ----------
>From: Michael Schuerig <michael@schuerig.de>
>Date: Fri, 4 Feb 2005 17:28:45 +0100
>Subject: Re: "JRE 1.5 "enum" is a Reserved Word" Does Axis Comply withthis rule?
>To: axis-user@ws.apache.org
>
>
>On Friday 04 February 2005 12:52, Davanum Srinivas wrote:
>
>  
>
>>On Fri, 4 Feb 2005 10:06:11 +0100, Michael Schuerig
>>    
>>
><michael@schuerig.de> wrote:
>  
>
>>>On Thursday 03 February 2005 04:27, Davanum Srinivas wrote:
>>>      
>>>
>>>>you can replace xxx.enum.yyy with xxx.constants.yyy
>>>>        
>>>>
>>>This only works in cases where one simply uses the constants. It
>>>does not work for variable, field, and parameter types.
>>>      
>>>
>
>  
>
>>can u give me an example?
>>    
>>
>
>Try to compile this:
>
>package test;
>
>import org.apache.axis.constants.Style;
>
>public class ConstantsVsEnum {
>    public static final Style myStyle = Style.DOCUMENT;
>
>    private static void styleTaker(Style style) {
>    }
>
>    public static void main( String[] args ) {
>        styleTaker(myStyle);
>        styleTake(Style.DOCUMENT);
>    }
>}
>
>These are the errors you'll probably get:
>
>test/ConstantsVsEnum.java:7: incompatible types
>found   : org.apache.axis.enum.Style
>required: org.apache.axis.constants.Style
>    public static final Style myStyle = Style.DOCUMENT;
>                                             ^
>test/ConstantsVsEnum.java:14: cannot find symbol
>symbol  : method styleTake(org.apache.axis.enum.Style)
>location: class test.ConstantsVsEnum
>        styleTake(Style.DOCUMENT);
>        ^
>2 errors
>
>Michael
>
>--
>Michael Schuerig                            You can twist perceptions
>mailto:michael@schuerig.de                        Reality won't budge
>http://www.schuerig.de/michael/               --Rush, Show Don't Tell
>
>
>  
>


Mime
View raw message