8187570: Comparison between pointer and char in MethodMatcher::canonicalize
authorehelin
Fri, 15 Sep 2017 10:43:03 +0200
changeset 47579 58931d9b2260
parent 47578 09c41c4913d9
child 47581 c5057bf6617f
8187570: Comparison between pointer and char in MethodMatcher::canonicalize Reviewed-by: ysuenaga, eosterlund
src/hotspot/share/compiler/methodMatcher.cpp
--- 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;