src/hotspot/share/compiler/methodMatcher.cpp
changeset 47579 58931d9b2260
parent 47216 71c04702a3d5
child 48000 089b6bf0d1a7
--- 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;