You need source="1.4" as well.

Peter

On Fri, Dec 19, 2008 at 4:18 PM, Eric Wood <ew...@llbean.com> wrote:
> My java is a 1.5 compiler, but I running the javac using a target="1.4
> and the output keeps giving me JAVA 1.5 compiler errors:
>
>
>
>    [javac]
> /ClearCase_Storage/viewroot/Ecommerce/ecomm_commerce_suite/build_ECOMM_1
> 5.0_Integration/vob/ecomm_commerce_suite/AppServer/WebSphereCommerceServ
> erExtensionsLogic/src/com/ibm/wcsx/llbean/common/utilities/FieldErrorDat
> aBean.java:87: warning: as of release 1.5, 'enum' is a keyword, and may
> not be used as an identifier
>    [javac] (try -source 1.5 to use 'enum' as a keyword)
>    [javac]     Enumeration enum = getExceptionData().keys();
>    [javac]                     ^
>    [javac]
> /ClearCase_Storage/viewroot/Ecommerce/ecomm_commerce_suite/build_ECOMM_1
> 5.0_Integration/vob/ecomm_commerce_suite/AppServer/WebSphereCommerceServ
> erExtensionsLogic/src/com/ibm/wcsx/llbean/common/utilities/FieldErrorDat
> aBean.java:88: warning: as of release 1.5, 'enum' is a keyword, and may
> not be used as an identifier
>    [javac] (try -source 1.5 to use 'enum' as a keyword)
>    [javac]     while (enum.hasMoreElements()) {
>
>
> Here is my javac task:
>      <javac srcdir="${dir.java.src}"
>             deprecation="off"
>             debug="on"
>             destdir="${dir.java.bin}"
>             optimize="on"
>             target="1.4"
>             fork="true"
>             nowarn="on"
>             memoryMaximumSize="724M">
>               <patternset refid="compile.patternset" />
>               <classpath refid="classpath.build" />
>      </javac>
>
> Am I not using this perpoerly. Nay help would be greatly appreciated.
>
> Eric
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to