aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Scholten <gscholt@gmail.com>2009-12-17 09:29:47 +0100
committerGert Scholten <gscholt@gmail.com>2009-12-17 09:29:47 +0100
commitc02c56285ea872ae329a926e05ab713c5c1db2ad (patch)
tree8ef5f9c134b1e12f61ec8580b042d8a3727c63fe
parent76dc8e0fd06a8e7a11e40ce5f5c5fa8bdfecddca (diff)
downloadgwtjsonrpc-c02c56285ea872ae329a926e05ab713c5c1db2ad.tar.gz
Revert "Code cleanup: Removed unused constructors from private member classes"
GWT compile ERROR: Constructors must be 'protected' in subclasses of JavaScriptObject This reverts commit 2a4378f9e5533cfbb5dea3ad79f6763c9fdcc453.
-rw-r--r--src/main/java/com/google/gwtjsonrpc/client/impl/v1_1/JsonCall11HttpPost.java6
-rw-r--r--src/main/java/com/google/gwtjsonrpc/client/impl/v2_0/JsonCall20.java6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/google/gwtjsonrpc/client/impl/v1_1/JsonCall11HttpPost.java b/src/main/java/com/google/gwtjsonrpc/client/impl/v1_1/JsonCall11HttpPost.java
index 8d8bc08..781dd99 100644
--- a/src/main/java/com/google/gwtjsonrpc/client/impl/v1_1/JsonCall11HttpPost.java
+++ b/src/main/java/com/google/gwtjsonrpc/client/impl/v1_1/JsonCall11HttpPost.java
@@ -146,12 +146,18 @@ public class JsonCall11HttpPost<T> extends JsonCall<T> {
private static class RpcResult extends JavaScriptObject {
+ protected RpcResult() {
+ }
+
final native RpcError error()/*-{ return this.error; }-*/;
final native String xsrfKey()/*-{ return this.xsrfKey; }-*/;
}
private static class RpcError extends JavaScriptObject {
+ protected RpcError() {
+ }
+
final native String message()/*-{ return this.message; }-*/;
final native int code()/*-{ return this.code; }-*/;
diff --git a/src/main/java/com/google/gwtjsonrpc/client/impl/v2_0/JsonCall20.java b/src/main/java/com/google/gwtjsonrpc/client/impl/v2_0/JsonCall20.java
index 4849c98..61b4ce4 100644
--- a/src/main/java/com/google/gwtjsonrpc/client/impl/v2_0/JsonCall20.java
+++ b/src/main/java/com/google/gwtjsonrpc/client/impl/v2_0/JsonCall20.java
@@ -124,12 +124,18 @@ abstract class JsonCall20<T> extends JsonCall<T> {
private static class RpcResult extends JavaScriptObject {
+ protected RpcResult() {
+ }
+
final native RpcError error()/*-{ return this.error; }-*/;
final native String xsrfKey()/*-{ return this.xsrfKey; }-*/;
}
private static class RpcError extends JavaScriptObject {
+ protected RpcError() {
+ }
+
final native String message()/*-{ return this.message; }-*/;
final native int code()/*-{ return this.code; }-*/;