From 6b7ad587042d2c98c2133c93382fb5ea8cdded8c Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 28 Feb 2014 23:24:38 +0200 Subject: [PATCH] Use separate dependencies instead of shared-deps * Use Guava 16 for CDI compatibility (#13351, #13383) * Use Android Json instead of org.json (#13277) Change-Id: I4f2c2b5c56afb03d09b41a040dec7d60b4563fe8 --- server/src/com/vaadin/server/JsonCodec.java | 4 ++-- shared/ivy.xml | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/server/src/com/vaadin/server/JsonCodec.java b/server/src/com/vaadin/server/JsonCodec.java index 129307e5c1..d05922b40d 100644 --- a/server/src/com/vaadin/server/JsonCodec.java +++ b/server/src/com/vaadin/server/JsonCodec.java @@ -617,7 +617,7 @@ public class JsonCodec implements Serializable { return decodedObject; } catch (Exception e) { - throw new JSONException(e); + throw new JSONException(e.getMessage()); } } @@ -765,7 +765,7 @@ public class JsonCodec implements Serializable { } } catch (Exception e) { // TODO: Should exceptions be handled in a different way? - throw new JSONException(e); + throw new JSONException(e.getMessage()); } return new EncodeResult(encoded, diff); } diff --git a/shared/ivy.xml b/shared/ivy.xml index 169a52034d..3dfe1a51c2 100644 --- a/shared/ivy.xml +++ b/shared/ivy.xml @@ -20,9 +20,15 @@ - - + + + + -- 2.39.5