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();
 }