[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: JavaHL JDK compatibility

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-10-04 18:47:30 CEST

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.

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

* 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>

  • text/plain attachment: patch
  • application/pgp-signature attachment: stored
Received on Wed Oct 4 18:46:37 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.