Work around a compiler bug by FQing the Log classname we're using.

We can revert these statements when/if that bug gets fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3960 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-03-18 00:04:34 +00:00
parent 3ecf7e311e
commit add8f3f97c
5 changed files with 10 additions and 11 deletions
@@ -86,7 +86,7 @@ public class ChatDirector extends BasicDirector
_cctx.getLocationDirector().addLocationObserver(this); _cctx.getLocationDirector().addLocationObserver(this);
if (_bundle == null || _msgmgr == null) { if (_bundle == null || _msgmgr == null) {
Log.warning("Null bundle or message manager given to ChatDirector"); com.threerings.crowd.Log.warning("Null bundle or message manager given to ChatDirector");
return; return;
} }
var msg :MessageBundle = _msgmgr.getBundle(_bundle); var msg :MessageBundle = _msgmgr.getBundle(_bundle);
@@ -902,7 +902,7 @@ public class ChatDirector extends BasicDirector
if (bundle != null && _msgmgr != null) { if (bundle != null && _msgmgr != null) {
var msgb :MessageBundle = _msgmgr.getBundle(bundle); var msgb :MessageBundle = _msgmgr.getBundle(bundle);
if (msgb == null) { if (msgb == null) {
Log.warning( com.threerings.crowd.Log.warning(
"No message bundle available to translate message " + "No message bundle available to translate message " +
"[bundle=" + bundle + ", message=" + message + "]."); "[bundle=" + bundle + ", message=" + message + "].");
} else { } else {
@@ -32,7 +32,7 @@ public class ArrayStreamer extends Streamer
_isFinal = ClassUtil.isFinal(_elementType); _isFinal = ClassUtil.isFinal(_elementType);
} else { } else {
Log.warning("Other array types are currently not handled yet " + com.threerings.presents.Log.warning("Other array types are currently not handled yet " +
"[jname=" + jname + "]."); "[jname=" + jname + "].");
throw new Error("Unimplemented bit"); throw new Error("Unimplemented bit");
} }
@@ -62,9 +62,9 @@ public class DObject // extends EventDispatcher
_listeners = new ArrayCollection(); _listeners = new ArrayCollection();
} else if (_listeners.contains(listener)) { } else if (_listeners.contains(listener)) {
Log.warning("Refusing repeat listener registration " + com.threerings.presents.Log.warning("Refusing repeat listener registration " +
"[dobj=" + which() + ", list=" + listener + "]."); "[dobj=" + which() + ", list=" + listener + "].");
Log.logStackTrace(new Error()); com.threerings.presents.Log.logStackTrace(new Error());
return; return;
} }
_listeners.addItem(listener); _listeners.addItem(listener);
@@ -95,9 +95,9 @@ public class DObject // extends EventDispatcher
(listener as EventListener).eventReceived(event); (listener as EventListener).eventReceived(event);
} }
} catch (e :Error) { } catch (e :Error) {
Log.warning("Listener choked during notification " + com.threerings.presents.Log.warning("Listener choked during notification " +
"[list=" + listener + ", event=" + event + "]."); "[list=" + listener + ", event=" + event + "].");
Log.logStackTrace(e); com.threerings.presents.Log.logStackTrace(e);
} }
} }
} }
@@ -114,7 +114,7 @@ public class DObject // extends EventDispatcher
_omgr.postEvent(event); _omgr.postEvent(event);
} else { } else {
Log.warning("Unable to post event, object has no omgr " + com.threerings.presents.Log.warning("Unable to post event, object has no omgr " +
"[oid=" + getOid() + ", class=" + ClassUtil.getClassName(this) + "[oid=" + getOid() + ", class=" + ClassUtil.getClassName(this) +
", event=" + event + "]."); ", event=" + event + "].");
} }
+1 -1
View File
@@ -123,7 +123,7 @@ public class DSet
} }
} else if (contains(elem)) { } else if (contains(elem)) {
Log.warning("Refusing to add duplicate entry [set=" + this + com.threerings.presents.Log.warning("Refusing to add duplicate entry [set=" + this +
", entry=" + elem + "]."); ", entry=" + elem + "].");
return false; return false;
} }
@@ -26,8 +26,7 @@ public class BootstrapData
// documentation inherited from interface Streamable // documentation inherited from interface Streamable
public function writeObject (out :ObjectOutputStream) :void public function writeObject (out :ObjectOutputStream) :void
{ {
Log.warning("This is client code: BootstrapData shouldn't be written"); com.threerings.presents.Log.warning("This is client code: BootstrapData shouldn't be written");
//out.writeShort(messageId);
} }
// documentation inherited from interface Streamable // documentation inherited from interface Streamable