[armedbear-cvs] r11451 - in branches/scripting/j: . src/org/armedbear/lisp

Alessio Stalla astalla at common-lisp.net
Mon Dec 15 22:11:01 UTC 2008


Author: astalla
Date: Mon Dec 15 22:11:00 2008
New Revision: 11451

Log:
Compatibility with Java 5: using the ANT-based build, the JSR-223 support is excluded from the build. Also removed a @Override annotation that prevented compiling ABCL with Java 5.

Modified:
   branches/scripting/j/build.xml
   branches/scripting/j/src/org/armedbear/lisp/JProxy.java

Modified: branches/scripting/j/build.xml
==============================================================================
--- branches/scripting/j/build.xml	(original)
+++ branches/scripting/j/build.xml	Mon Dec 15 22:11:00 2008
@@ -20,6 +20,10 @@
     <property name="j.jar.path"
 	      value="${dist.dir}/j.jar"/>
 
+    <condition property="abcl.java.version15">
+		<matches string="${java.version}" pattern="1\.5"/>
+    </condition>
+	
     <target name="help">
       <echo>Main Ant targets:
  abcl.compile  
@@ -100,8 +104,8 @@
 
     <patternset id="abcl.source.java">
       <include name="org/armedbear/lisp/*.java"/>
-      <include name="org/armedbear/lisp/scripting/*.java"/>
-      <include name="org/armedbear/lisp/scripting/util/*.java"/>
+      <include name="org/armedbear/lisp/scripting/*.java" unless="abcl.java.version15"/>
+      <include name="org/armedbear/lisp/scripting/util/*.java" unless="abcl.java.version15"/>
       <include name="org/armedbear/Main.java"/>
     </patternset>
     
@@ -110,7 +114,7 @@
       <include name="org/armedbear/lisp/tests/*.lisp"/>
       <include name="org/armedbear/lisp/java/awt/*.lisp"/>
       <include name="org/armedbear/lisp/java/awt/*.java"/>
-      <include name="org/armedbear/lisp/scripting/lisp/*.lisp"/>
+      <include name="org/armedbear/lisp/scripting/lisp/*.lisp" unless="abcl.java.version15"/>
     </patternset>
 
     <!-- Lisp files required at runtime -->
@@ -118,15 +122,15 @@
       <include name="org/armedbear/lisp/boot.lisp"/>
       <include name="org/armedbear/lisp/top-level.lisp"/>
       <include name="org/armedbear/lisp/*.lisp"/> 
-	  <include name="org/armedbear/lisp/scripting/lisp/*.lisp"/>
+	  <include name="org/armedbear/lisp/scripting/lisp/*.lisp" unless="abcl.java.version15"/>
     </patternset>
 
     <patternset id="abcl.objects">
       <include name="org/armedbear/lisp/*.class"/>
       <include name="org/armedbear/lisp/*.cls"/> 
       <include name="org/armedbear/lisp/*.abcl"/>
-      <include name="org/armedbear/lisp/scripting/*.class"/>
-      <include name="org/armedbear/lisp/scripting/util/*.class"/>
+      <include name="org/armedbear/lisp/scripting/*.class" unless="abcl.java.version15"/>
+      <include name="org/armedbear/lisp/scripting/util/*.class" unless="abcl.java.version15"/>
       <patternset refid="abcl.source.lisp.dist"/>
     </patternset>
     
@@ -198,13 +202,10 @@
 
       <exec executable="hostname" os="Linux" outputproperty="hostname"/>
 
-      <condition property="abcl.java.version">
-	<matches string="${java.version}" pattern="1\.5"/>
-      </condition>
       <echo>java.version: ${java.version}</echo>
     </target>
     
-    <target name="abcl.java.warning" unless="abcl.java.version">
+    <target name="abcl.java.warning" unless="abcl.java.version15">
       <echo>WARNING: Java version ${java.version} not recommended.</echo>
     </target>
 	

Modified: branches/scripting/j/src/org/armedbear/lisp/JProxy.java
==============================================================================
--- branches/scripting/j/src/org/armedbear/lisp/JProxy.java	(original)
+++ branches/scripting/j/src/org/armedbear/lisp/JProxy.java	Mon Dec 15 22:11:00 2008
@@ -150,7 +150,6 @@
   			this.function = function;
   		}
   		
-		@Override
 		public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
 	    	if(hashCodeMethod.equals(method)) {
 	    		return System.identityHashCode(proxy);




More information about the armedbear-cvs mailing list