Revision: 8970
Author: [email protected]
Date: Thu Oct  7 08:07:05 2010
Log: Remove JSON dependency from log sample and other users that don't use json

http://code.google.com/p/google-web-toolkit/source/detail?r=8970

Modified:
 /trunk/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java

=======================================
--- /trunk/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java Tue Oct 5 11:03:13 2010 +++ /trunk/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java Thu Oct 7 08:07:05 2010
@@ -16,8 +16,6 @@

 package com.google.gwt.logging.server;

-import org.json.JSONException;
-
 import java.util.logging.LogRecord;
 import java.util.logging.Logger;

@@ -71,7 +69,9 @@
       lr = JsonLogRecordServerUtil.logRecordFromJson(
           serializedLogRecordJson);
       logOnServer(lr, strongName, deobfuscator, loggerNameOverride);
-    } catch (JSONException e) {
+    } catch (Exception e) {
+ // We don't want to import the JsonException, which will require the json
+      // jar when this class loads, so we just catch all exceptions here
       throw new RemoteLoggingException("Failed to deserialize JSON", e);
     }
   }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to