Skip to content

Instantly share code, notes, and snippets.

@jhickman
Created December 4, 2012 03:31
Show Gist options
  • Save jhickman/4200267 to your computer and use it in GitHub Desktop.
Save jhickman/4200267 to your computer and use it in GitHub Desktop.
GWT HandlerEvaluator changes
--- HandlerEvaluator-orig.java 2012-12-03 21:29:39.000000000 -0600
+++ HandlerEvaluator.java 2012-12-03 21:30:40.000000000 -0600
@@ -291,15 +291,18 @@
* equality. For instance:
*
* handlerType => TableHandler<String>
- * subjectHandler => TableHandler
+ * subjectHandler => TableHandler<?>
*
* This is done as an alternative handler method to preserve the
* original logic.
*/
JParameterizedType ptype = handlerType.isParameterized();
if (ptype != null) {
- if (subjectHandler.equals(ptype.getRawType())) {
- alternativeHandlerMethod = method;
+ JParameterizedType subjectptype = subjectHandler.isParameterized();
+ if (subjectptype != null) {
+ if (subjectptype.getRawType().equals(ptype.getRawType())) {
+ alternativeHandlerMethod = method;
+ }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment