Stephen McConnell wrote:
> 
> Umm, confused - my ant javac directive includes the target attribute -
> 
>     <javac debug="off" destdir="${build}/lib" target="1.2">
>       <classpath>
>         <path refid="project.classpath" />
>       </classpath>
>       <src path="${src}/java" />
>     </javac>
> 
> Isn't this suposes to flag stuff like this as an error?
> 


No.  All that means is the byte-code generated is compatible with that
JDK.  It still compiles to whatever libraries (including the JDK1.4
rt.jar) are in the classpath.


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to