BACKPORT: 8187570: Comparison between pointer and char in MethodMatcher::canonicalize
Reviewed-by: ysuenaga, eosterlund
Change-Id: Id5290d49829d83167b08ece5ce8bc4b945533bf8
diff --git a/src/share/vm/compiler/methodMatcher.cpp b/src/share/vm/compiler/methodMatcher.cpp
index 8113d85..cc84fb5 100644
--- a/src/share/vm/compiler/methodMatcher.cpp
+++ b/src/share/vm/compiler/methodMatcher.cpp
@@ -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;