8187570: Comparison between pointer and char in MethodMatcher::canonicalize
Reviewed-by: ysuenaga, eosterlund
--- a/src/hotspot/share/compiler/methodMatcher.cpp Tue Sep 26 21:37:01 2017 +0200
+++ b/src/hotspot/share/compiler/methodMatcher.cpp Fri Sep 15 10:43:03 2017 +0200
@@ -96,7 +96,7 @@
bool have_colon = (colon != NULL);
if (have_colon) {
// Don't allow multiple '::'
- if (colon + 2 != '\0') {
+ if (colon[2] != '\0') {
if (strstr(colon+2, "::")) {
error_msg = "Method pattern only allows one '::' allowed";
return false;