Created
December 4, 2012 03:31
-
-
Save jhickman/4200267 to your computer and use it in GitHub Desktop.
GWT HandlerEvaluator changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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