Eric Smith <eric225...@gmail.com> wrote on 11/11/2010 04:10:54 PM:

> Hi,
>
> When I try to build Xerces-J with gcj as my jdk, it fails with
>
> compile:
> [copy] Copying 23 files to
> /var/tmp/paludis/build/dev-java-Xerces-J-2.10.0/work/xerces-2_10_0/
> build/classes
> [xjavac] Compiling 704 source files to
> /var/tmp/paludis/build/dev-java-Xerces-J-2.10.0/work/xerces-2_10_0/
> build/classes
> [xjavac] Compliance level '1.5' is incompatible with source level '1.6'.
A
> compliance level '1.6' or better is required
>
> The problem is that Xerces-J is setting the source level with ant's
> built-in ant.java.version, which is set incorrectly for gcj. I filed
> a bug with ant at
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50256
> but they said that Xerces-J shouldn't be using ant.java.version to
> set the source level anyway, so is this a bug with Xerces-J?

No. This was intentional so that class files are generated at the same
level as the JDK used to compile Xerces. The source level cannot be lower
than the target.

> Thanks,
> Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to