diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeApi.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeApi.java index 10dac18c9e..bcd755f7b3 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeApi.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/ChangeApi.java @@ -25,7 +25,7 @@ import com.google.gwtjsonrpc.common.AsyncCallback; public class ChangeApi { private static final String URI = "/changes/"; - private static class Message extends JavaScriptObject { + protected static class Message extends JavaScriptObject { public final native void setMessage(String value) /*-{ this.message = value; }-*/; } @@ -36,7 +36,7 @@ public class ChangeApi { */ public static void abandon(int changeId, String message, AsyncCallback callback) { - Message msg = new Message(); + Message msg = (Message) JavaScriptObject.createObject(); msg.setMessage(message); new RestApi(URI + changeId + "/abandon").data(msg).post(callback); } diff --git a/gerrit-plugin-gwtui/pom.xml b/gerrit-plugin-gwtui/pom.xml index f5df326732..1460870557 100644 --- a/gerrit-plugin-gwtui/pom.xml +++ b/gerrit-plugin-gwtui/pom.xml @@ -58,7 +58,7 @@ limitations under the License. org.codehaus.mojo gwt-maven-plugin - [2.4.0,) + [2.5.0,) resources compile @@ -121,4 +121,5 @@ limitations under the License. - \ No newline at end of file + + diff --git a/pom.xml b/pom.xml index e482a2d720..1af26700b8 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ limitations under the License. 1.5 1.3 1.2.6 - 2.4.0 + 2.5.0 140 1.6.1 3.0 @@ -385,7 +385,7 @@ limitations under the License. org.codehaus.mojo gwt-maven-plugin - 2.4.0 + 2.5.0