Revision: 8743
Author: amitman...@google.com
Date: Thu Sep 9 16:14:51 2010
Log: Removed the incomplete check that slipped in the last commit.
Patch by: amitmanjhi
Review by: cromwellian (tbr)
http://code.google.com/p/google-web-toolkit/source/detail?r=8743
Modified:
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
=======================================
---
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
Thu Sep 9 14:34:00 2010
+++
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
Thu Sep 9 16:14:51 2010
@@ -630,14 +630,7 @@
public Object invokeDomainMethod(Object domainObject, Method
domainMethod, Object args[])
throws IllegalAccessException, InvocationTargetException {
- Object returnValue = domainMethod.invoke(domainObject, args);
- if (returnValue == null && domainMethod.getReturnType() != Void.class)
{
- // is this the right thing to do?
- throw new IllegalStateException(domainMethod + " with arguments " +
args
- + " is returning null, even though its return type is "
- + domainMethod.getReturnType());
- }
- return returnValue;
+ return domainMethod.invoke(domainObject, args);
}
public JSONObject processJsonRequest(String jsonRequestString)
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors