| commit | 7fcc3cb1f88925ac48b20d0a50907dba5ea5fa0c | [log] [tgz] |
|---|---|---|
| author | amitmanjhi@google.com <amitmanjhi@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Sep 22 16:03:56 2010 +0000 |
| committer | amitmanjhi@google.com <amitmanjhi@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Sep 22 16:03:56 2010 +0000 |
| tree | 4e984e0c1ad6852741db615f28ca7d31cd21d968 | |
| parent | 577d0028df2774ef6fe9d1168e6f8446d791fc6e [diff] |
Prevent any upcast polymorphism in tests. It is not supported. Patch by: amitmanjhi Review by: cromwellian git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8844 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/requestfactory/shared/BaseFooProxy.java b/user/test/com/google/gwt/requestfactory/shared/BaseFooProxy.java index df9f6b0..2a40ca3 100644 --- a/user/test/com/google/gwt/requestfactory/shared/BaseFooProxy.java +++ b/user/test/com/google/gwt/requestfactory/shared/BaseFooProxy.java
@@ -48,8 +48,6 @@ Float getFloatField(); - BaseFooProxy getFooField(); - Integer getIntId(); Long getLongField(); @@ -102,8 +100,6 @@ void setFloatField(Float f); - void setFooField(BaseFooProxy fooField); - void setIntId(Integer intId); void setLongField(Long longField);
diff --git a/user/test/com/google/gwt/requestfactory/shared/SimpleFooProxy.java b/user/test/com/google/gwt/requestfactory/shared/SimpleFooProxy.java index 3931c71..28f7a23 100644 --- a/user/test/com/google/gwt/requestfactory/shared/SimpleFooProxy.java +++ b/user/test/com/google/gwt/requestfactory/shared/SimpleFooProxy.java
@@ -22,7 +22,11 @@ */ @ProxyFor(SimpleFoo.class) public interface SimpleFooProxy extends BaseFooProxy { + SimpleFooProxy getFooField(); + Long getId(); - + + void setFooField(SimpleFooProxy fooField); + EntityProxyId<SimpleFooProxy> stableId(); }
diff --git a/user/test/com/google/gwt/requestfactory/shared/SimpleFooStringProxy.java b/user/test/com/google/gwt/requestfactory/shared/SimpleFooStringProxy.java index 4ef55ce..875d44c 100644 --- a/user/test/com/google/gwt/requestfactory/shared/SimpleFooStringProxy.java +++ b/user/test/com/google/gwt/requestfactory/shared/SimpleFooStringProxy.java
@@ -22,7 +22,11 @@ */ @ProxyFor(SimpleFooString.class) public interface SimpleFooStringProxy extends BaseFooProxy { + SimpleFooStringProxy getFooField(); + String getId(); - + + void setFooField(SimpleFooStringProxy fooField); + EntityProxyId<SimpleFooStringProxy> stableId(); }