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