D
Dean Schulze
I've been compiling a J2EE application using JDK 1.5.0_04 for several
months now for deployment on a server that uses JDK 1.4. I've always
used the javac -target and -source arguments set to "1.4" (without the
quotes). To my horror I've just discovered that these settings allow
the use of JDK 1.5 features, specifically String.contains().
I compile this application with both Ant and Eclipse with the target and
source settings set to 1.4 and it never complains about the
String.contains().
Are the -target and -source arguments broken in JDK 1.5?
months now for deployment on a server that uses JDK 1.4. I've always
used the javac -target and -source arguments set to "1.4" (without the
quotes). To my horror I've just discovered that these settings allow
the use of JDK 1.5 features, specifically String.contains().
I compile this application with both Ant and Eclipse with the target and
source settings set to 1.4 and it never complains about the
String.contains().
Are the -target and -source arguments broken in JDK 1.5?