changeset 47579:58931d9b2260

8187570: Comparison between pointer and char in MethodMatcher::canonicalize Reviewed-by: ysuenaga, eosterlund
author ehelin
date Fri, 15 Sep 2017 10:43:03 +0200
parents 09c41c4913d9
children c5057bf6617f
files src/hotspot/share/compiler/methodMatcher.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;