commit | 698541f3387450a65bfc22622001c14b3e672675 | [log] [tgz] |
---|---|---|
author | rjrjr@google.com <rjrjr@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Sep 23 19:19:33 2011 +0000 |
committer | rjrjr@google.com <rjrjr@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Sep 23 19:19:33 2011 +0000 |
tree | 83736a35abad6d7cb092adaa3b5d75d3e208470d | |
parent | 510a07bec850652448cec97410772e1a57216db3 [diff] |
Fix name clash between RequestContext and the FindRequest impl interface. I think this was only able to compile due to a javac bug. When I reinstalled eclipse today (don't ask, just don't ask), this line started failng with: Name clash: The method find(EntityProxyId<?>) of type FindRequest has the same erasure as find(EntityProxyId<P>) of type RequestContext but does not override it Installing a fresh OpenJDK showed the same fail in an ant build. Review at http://gwt-code-reviews.appspot.com/1559803 Review by: cromwellian@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10671 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/web/bindery/requestfactory/shared/impl/FindRequest.java b/user/src/com/google/web/bindery/requestfactory/shared/impl/FindRequest.java index 5061b7f..e6c7a27 100644 --- a/user/src/com/google/web/bindery/requestfactory/shared/impl/FindRequest.java +++ b/user/src/com/google/web/bindery/requestfactory/shared/impl/FindRequest.java
@@ -31,5 +31,5 @@ /** * Use the implicit lookup in passing EntityProxy types to service methods. */ - Request<EntityProxy> find(EntityProxyId<?> proxy); + <P extends EntityProxy> Request<P> find(EntityProxyId<P> proxyId); } \ No newline at end of file