diff --git a/build.xml b/build.xml index 302fc7ac0..95ec2bef0 100644 --- a/build.xml +++ b/build.xml @@ -36,7 +36,8 @@ classpathref="classpath"/> + debug="on" optimize="${build.optimize}" deprecation="on" + source="1.4" target="1.4"> @@ -84,7 +85,8 @@ + debug="on" optimize="{$build.optimize}" deprecation="on" + source="1.4" target="1.4"> diff --git a/src/java/com/threerings/presents/tools/GenServiceTask.java b/src/java/com/threerings/presents/tools/GenServiceTask.java index 45d9bbd1c..34ba53317 100644 --- a/src/java/com/threerings/presents/tools/GenServiceTask.java +++ b/src/java/com/threerings/presents/tools/GenServiceTask.java @@ -35,7 +35,7 @@ import com.threerings.presents.server.InvocationException; public class GenServiceTask extends InvocationTask { /** Used to keep track of custom InvocationListener derivations. */ - public class ServiceListener implements Comparable + public class ServiceListener implements Comparable { public Class listener; @@ -57,9 +57,9 @@ public class GenServiceTask extends InvocationTask methods.sort(); } - public int compareTo (ServiceListener other) + public int compareTo (Object other) { - return getName().compareTo(other.getName()); + return getName().compareTo(((ServiceListener)other).getName()); } public boolean equals (Object other) diff --git a/src/java/com/threerings/presents/tools/InvocationTask.java b/src/java/com/threerings/presents/tools/InvocationTask.java index 3dbc2aae2..7c02e21cd 100644 --- a/src/java/com/threerings/presents/tools/InvocationTask.java +++ b/src/java/com/threerings/presents/tools/InvocationTask.java @@ -69,7 +69,7 @@ public abstract class InvocationTask extends Task } /** Used to keep track of invocation service methods. */ - public class ServiceMethod implements Comparable + public class ServiceMethod implements Comparable { public Method method; @@ -154,9 +154,9 @@ public abstract class InvocationTask extends Task return (method.getParameterTypes().length > 1); } - public int compareTo (ServiceMethod other) + public int compareTo (Object other) { - return getCode().compareTo(other.getCode()); + return getCode().compareTo(((ServiceMethod)other).getCode()); } public String getUnwrappedArgList (boolean listenerMode)