commit | 4c00188cbc1aee9dca708c85a213221d04e37a43 | [log] [tgz] |
---|---|---|
author | Goktug Gokdogan <goktug@google.com> | Tue May 24 22:11:26 2016 -0700 |
committer | Goktug Gokdogan <goktug@google.com> | Thu May 26 03:48:29 2016 +0000 |
tree | 8589aa0adc42e5f06e92a954b5d8966f6b65acac | |
parent | 152d92a31fc8a028027b02321dfc0db4dd36cc78 [diff] |
Special case JsExcepiton in GWT-RPC policy. This prevents missing JsException to show up in logs when the SerializaionPolicy is read. Change-Id: Ia9dea68394df25dcf53a8a586dd08162a18d3d31
diff --git a/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java b/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java index 89490c0..04a07a7 100644 --- a/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java +++ b/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java
@@ -850,6 +850,11 @@ type = type.getErasedType(); + if (type.getLeafType().getQualifiedSourceName().equals("java.lang.JsException")) { + // JsException is not considered serializable since it is never available at JVM. + continue; + } + if (tic.isInstantiable()) { assert (!type.isAbstract() || type.isEnum() != null);