Revision: 8782
Author: [email protected]
Date: Wed Sep 15 02:57:26 2010
Log: Workaround for a generics bug in javac 1.6.0_20 on the mac.
Patch by: bobv
Review by: rjrjr (TBR)
http://code.google.com/p/google-web-toolkit/source/detail?r=8782
Modified:
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ProxyImpl.java
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ProxyJsoImpl.java
=======================================
---
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ProxyImpl.java
Tue Sep 14 17:54:04 2010
+++
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ProxyImpl.java
Wed Sep 15 02:57:26 2010
@@ -79,11 +79,13 @@
* @return the value
*/
public <V> V get(Property<V> property) {
- return jso.get(property);
+ // javac 1.6.0_20 on mac has problems without the explicit
parameterization
+ return jso.<V> get(property);
}
public <V> V get(String propertyName, Class<?> propertyType) {
- return jso.get(propertyName, propertyType);
+ // javac 1.6.0_20 on mac has problems without the explicit
parameterization
+ return jso.<V> get(propertyName, propertyType);
}
public Long getId() {
=======================================
---
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ProxyJsoImpl.java
Tue Sep 14 17:54:04 2010
+++
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ProxyJsoImpl.java
Wed Sep 15 02:57:26 2010
@@ -94,7 +94,8 @@
String name = property.getName();
Class<V> type = property.getType();
- return get(name, type);
+ // javac 1.6.0_20 on mac has problems without the explicit
parameterization
+ return this.<V> get(name, type);
}
@SuppressWarnings("unchecked")
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors