Langtools javac task target/source from build.properties in 1.11
Michael Franz
mvfranz at gmail.com
Tue Aug 18 05:06:45 PDT 2009
I don't normally follow the openjdk mailing list, but I see this issue was
found back on August 10 with b68. Will IcedTea still plan on using target
5? Or will it be bumping to target 6?
On Tue, Aug 18, 2009 at 2:16 AM, Michael Franz <mvfranz at gmail.com> wrote:
> Hi,
>
> I am building using JDK 1.5 as my default, but configured with JDK 6 (this
> is on OS X). When the langtools section of the build runs I get a Bad
> version number in .class file when the custom task 'pcompile' executes.
> This is because the classes for the task are compile for JDK 6, but then run
> using JDK 5. The build.properties file has been updated to specify
> source/target as 5 (from 6) but these are not passed to the javac that
> compiles the tools. To fix this, either the compilation of the tool needs
> to specify the target as 5 or the jvm used to execute the tool needs to be
> the same one used for the rest of the build (in this case 6).
>
> The command line calling ant is:
> ANT_OPTS=-Djava.io.tmpdir='/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/openjdk-ecj/build/bsd-i586/langtools/build/ant-tmp'
> ant -Djdk.version=1.7.0_0 -Dfull.version='1.7.0_0-bsd-b66'
> -Drelease=1.7.0_0 -Dbuild.number=b66 -Djavac.debug=true
> -Ddebug.classfiles=true -Djavac.target=5 -Djavac.source=5
> -Dboot.java.home=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/bootstrap/jdk1.6.0
> -Djavac.executable=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/bootstrap/jdk1.6.0/bin/javac
> -Dbuild.dir=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/openjdk-ecj/build/bsd-i586/langtools/build
> -Ddist.dir=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/openjdk-ecj/build/bsd-i586/langtools/dist
> build
>
> where boot.javac.home is JDK 6.
>
> So, ant is fired up using JDK 5, but the javac tasks run JDK 6. Is there a
> way to run the custom tasks using a forked JVM?
>
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090818/95680fb3/attachment.html
More information about the distro-pkg-dev
mailing list