Daniel Rall <dlr@collab.net> wrote on 10/04/2006 12:47:30 PM:
> On Wed, 04 Oct 2006, Conor MacNeill wrote:
>
> > Hi,
> >
> > The current javahl build available with Subversion 1.4 (at least for
> > windows) requires JDK 1.5 to run since the classfile major version is
> > 49. Was this intentional?
> >
> > It may be a good idea to add a -target setting (and maybe -source) to
> > the javac command when building the next version.
>
> Conor, thanks much for noticing this problem. I've got a patch which
> works with autoconf (for *nix), and changes gen_win.py to spit out a
> similar configuration.
>
> Paul Burba mentioned he might be able to test out the Windows patch,
> but if you're able to teake it for a test-drive, that'd be great, too.
Built the JavaHL bindings and ran the JavaHL tests without any problems on
Windows.
Paul B.
> [[[
> JavaHL: Compile Java bytecode for the target platform of a Java 1.2
> JVM. The default is typically equal to the compiling JDK version, or
> the value for the -source flag to javac (if lower). Assume our Java
> source code is JDK 1.2-compatible (as mentioned in
> subversion/bindings/java/javahl/README).
>
> * configure.in
> (JAVA_OLDEST_WORKING_VER): Set the minimum Java version to 1.2.
> (SVN_CHECK_JDK): Pass in new JAVA_OLDEST_WORKING_VER parameter.
>
> * build/ac-macros/java.m4
> (SVN_CHECK_JDK): Accept new JAVA_OLDEST_WORKING_VER parameter. Pass
> it on to SVN_FIND_JDK.
> (SVN_FIND_JDK): Accept new JAVA_OLDEST_WORKING_VER parameter. In
> JAVAC_FLAGS, set -target to this value, and -source to 1.2.
>
> * build/generator/gen_win.py
> (WinGeneratorBase.get_proj_sources): When compiling Java bytecode,
> specify -target and -source as 1.2. This is hard-coded for now,
> but -target could later be made a configuration option in the
> "[options]" section of build.conf.
>
> Found by: Conor MacNeill <conor@cenqua.com>
> ]]]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 4 19:28:08 2006