OK, going with the empirical approach rather than theorising about it!

<?xml version="1.0" encoding="UTF-8"?>
<project name="xerces-jdk-version" default="compile">

    <target name="compile">
        <mkdir dir="classes" />
        <javac source="1.2" target="1.2" srcdir="." destdir="classes"
            classpath="xercesImpl.jar" />
    </target>

</project>

public class X {
     org.apache.xerces.parsers.XIncludeAwareParserConfiguration conf =
new org.apache.xerces.parsers.XIncludeAwareParserConfiguration();
}

That works for me, although I noticed something slightly surprising when I compiled using a 1.4 and 1.5 JDK.

    [javac] '-source'
    [javac] '1.3'

?

Cheers,

James

[EMAIL PROTECTED] wrote:
Looks like it does...

http://svn.apache.org/viewvc/xerces/java/trunk/build.xml?view=markup

The compile target doesnt set a source and target level.



which uses an extended form of <javac/>

http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java?vi
ew=markup


I cant see any implementation which sets the target to 1.2.
Quick test would be
public class X { org.apache.xerces.parsers.XIncludeAwareParserConfiguration conf =
new org.apache.xerces.parsers.XIncludeAwareParserConfiguration();
   }
and compile under JDK 1.2
   <javac source="1.2" target="1.2"/>



The class file version number (after pulling apart
org.apache.xerces.impl.Version) is 45.3, which I think is good enough?

http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.ht
ml#75883


Maybe - just test ;-)


Jan


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

Reply via email to