From 421ed5126e2d16372c7a89b0515fc6b5da59af48 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 27 Nov 2004 17:34:55 +0000 Subject: [PATCH] Got a little too excited about using 1.5 features and some slipped into Narya. I added directives to the compile line to prevent that from happening again. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3247 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- build.xml | 6 ++++-- src/java/com/threerings/presents/tools/GenServiceTask.java | 6 +++--- src/java/com/threerings/presents/tools/InvocationTask.java | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) 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)