On Wed, 26 Dec 2012, Robert Muir wrote:
i installed java7 on my os X... with the following build patch pylucene seems to work fine (tests pass etc). I think java7 is just pickier about -source/-target both being set for jcc. And the extensions should use the same explicit source/target (or the build can hit classfile version problems).
Applied in rev 1426118, thank you ! Andi..
Index: extensions.xml =================================================================== --- extensions.xml (revision 1425975) +++ extensions.xml (working copy) @@ -16,7 +16,7 @@ <target name="compile"> <mkdir dir="${classes.dir}"/> - <javac srcdir="java" destdir="${classes.dir}" classpathref="classpath" /> + <javac srcdir="java" destdir="${classes.dir}" classpathref="classpath" source="1.5" target="1.5" /> </target> <target name="jar" depends="compile"> Index: jcc/setup.py =================================================================== --- jcc/setup.py (revision 1425975) +++ jcc/setup.py (working copy) @@ -149,7 +149,7 @@ LFLAGS['linux2'] = LFLAGS['linux2/%s' %(machine)] JAVAC = { - 'darwin': ['javac', '-target', '1.5'], + 'darwin': ['javac', '-source', '1.5', '-target', '1.5'], 'ipod': ['jikes', '-cp', '/usr/share/classpath/glibj.zip'], 'linux2': ['javac'], 'sunos5': ['javac'], http://pastebin.com/raw.php?i=qHpMw9Na