diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
index 8eb0348e..82bf08a0 100644
--- a/.settings/org.eclipse.jdt.core.prefs
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -1,12 +1,12 @@
-#Tue Jul 03 19:42:15 PDT 2007
+#Tue Oct 09 20:37:03 PDT 2007
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.compliance=1.3
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore
+org.eclipse.jdt.core.compiler.source=1.3
diff --git a/.settings/org.eclipse.jdt.ui.prefs b/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index e90091dd..00000000
--- a/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Sat Jun 16 07:29:29 PDT 2007
-eclipse.preferences.version=1
-internal.default.compliance=default
diff --git a/build.xml b/build.xml
index 8ed5c474..01a050d5 100644
--- a/build.xml
+++ b/build.xml
@@ -7,12 +7,10 @@
-
+
-
-
-
diff --git a/src/addon/java/lua/addon/luajava/CoerceJavaToLua.java b/src/addon/java/lua/addon/luajava/CoerceJavaToLua.java
index 2c91c8c2..61b32a92 100644
--- a/src/addon/java/lua/addon/luajava/CoerceJavaToLua.java
+++ b/src/addon/java/lua/addon/luajava/CoerceJavaToLua.java
@@ -17,7 +17,7 @@ public class CoerceJavaToLua {
public LValue coerce( Object javaValue );
};
- private static Map COERCIONS = new HashMap();
+ private static Map COERCIONS = new HashMap();
static {
Coercion boolCoercion = new Coercion() {
@@ -56,7 +56,7 @@ public class CoerceJavaToLua {
if ( o == null )
return LNil.NIL;
Class clazz = o.getClass();
- Coercion c = COERCIONS.get( clazz );
+ Coercion c = (Coercion) COERCIONS.get( clazz );
if ( c != null )
return c.coerce( o );
return new LInstance( o, o.getClass() );
diff --git a/src/addon/java/lua/addon/luajava/CoerceLuaToJava.java b/src/addon/java/lua/addon/luajava/CoerceLuaToJava.java
index 9755c853..9f916140 100644
--- a/src/addon/java/lua/addon/luajava/CoerceLuaToJava.java
+++ b/src/addon/java/lua/addon/luajava/CoerceLuaToJava.java
@@ -19,7 +19,7 @@ public class CoerceLuaToJava {
public int score( LValue value );
};
- private static Map COERCIONS = new HashMap();
+ private static Map COERCIONS = new HashMap();
private static Coercion OBJECT_COERCION;
static {
@@ -112,7 +112,7 @@ public class CoerceLuaToJava {
}
static Object coerceArg(LValue v, Class type) {
- Coercion co = COERCIONS.get( type );
+ Coercion co = (Coercion) COERCIONS.get( type );
if ( co != null )
return co.coerce( v );
if ( v instanceof LUserData )
@@ -144,7 +144,7 @@ public class CoerceLuaToJava {
for ( int i=0; i> consCache =
- new HashMap>();
+ private static Map consCache =
+ new HashMap();
- private static Map>> consIndex =
- new HashMap>>();
+ private static Map consIndex =
+ new HashMap();
private static Constructor resolveConstructor(Class clazz, ParamsList params ) {
// get the cache
- Map cache = consCache.get( clazz );
+ Map cache = (Map) consCache.get( clazz );
if ( cache == null )
- consCache.put( clazz, cache = new HashMap() );
+ consCache.put( clazz, cache = new HashMap() );
// look up in the cache
- Constructor c = cache.get( params );
+ Constructor c = (Constructor) cache.get( params );
if ( c != null )
return c;
// get index
- Map> index = consIndex.get( clazz );
+ Map index = (Map) consIndex.get( clazz );
if ( index == null ) {
- consIndex.put( clazz, index = new HashMap>() );
+ consIndex.put( clazz, index = new HashMap() );
Constructor[] cons = clazz.getConstructors();
- for ( Constructor con : cons ) {
- int n = con.getParameterTypes().length;
- List list = index.get(n);
+ for ( int i=0; i() );
+ index.put( n, list = new ArrayList() );
list.add( con );
}
}
// figure out best list of arguments == supplied args
- int n = params.classes.length;
- List list = index.get(n);
+ Integer n = Integer.valueOf( params.classes.length );
+ List list = (List) index.get(n);
if ( list == null )
throw new IllegalArgumentException("no constructor with "+n+" args");
@@ -227,7 +228,7 @@ public final class LuaJava extends LFunction {
int bests = Integer.MAX_VALUE;
int besti = 0;
for ( int i=0, size=list.size(); i>> methCache =
- new HashMap>>();
+ private static Map methCache =
+ new HashMap();
- private static Map>>> methIndex =
- new HashMap>>>();
+ private static Map methIndex =
+ new HashMap();
private static Method resolveMethod(Class clazz, String methodName, ParamsList params ) {
// get the cache
- Map> nameCache = methCache.get( clazz );
+ Map nameCache = (Map) methCache.get( clazz );
if ( nameCache == null )
- methCache.put( clazz, nameCache = new HashMap>() );
- Map cache = nameCache.get( methodName );
+ methCache.put( clazz, nameCache = new HashMap() );
+ Map cache = (Map) nameCache.get( methodName );
if ( cache == null )
- nameCache.put( methodName, cache = new HashMap() );
+ nameCache.put( methodName, cache = new HashMap() );
// look up in the cache
- Method m = cache.get( params );
+ Method m = (Method) cache.get( params );
if ( m != null )
return m;
// get index
- Map>> index = methIndex.get( clazz );
+ Map index = (Map) methIndex.get( clazz );
if ( index == null ) {
- methIndex.put( clazz, index = new HashMap>>() );
+ methIndex.put( clazz, index = new HashMap() );
Method[] meths = clazz.getMethods();
- for ( Method meth : meths ) {
+ for ( int i=0; i> map = index.get(s);
+ Integer n = Integer.valueOf(meth.getParameterTypes().length);
+ Map map = (Map) index.get(s);
if ( map == null )
- index.put( s, map = new HashMap>() );
- List list = map.get(n);
+ index.put( s, map = new HashMap() );
+ List list = (List) map.get(n);
if ( list == null )
- map.put( n, list = new ArrayList() );
+ map.put( n, list = new ArrayList() );
list.add( meth );
}
}
// figure out best list of arguments == supplied args
- Map> map = index.get(methodName);
+ Map map = (Map) index.get(methodName);
if ( map == null )
throw new IllegalArgumentException("no method named '"+methodName+"'");
- int n = params.classes.length;
- List list = map.get(n);
+ Integer n = Integer.valueOf( params.classes.length );
+ List list = (List) map.get(n);
if ( list == null )
throw new IllegalArgumentException("no method named '"+methodName+"' with "+n+" args");
@@ -294,7 +296,7 @@ public final class LuaJava extends LFunction {
int bests = Integer.MAX_VALUE;
int besti = 0;
for ( int i=0, size=list.size(); i