8253872: ArgumentHandler must use the same delimiters as in jvmti_tools.cpp

Reviewed-by: cjplummer
This commit is contained in:
Igor Ignatyev 2020-09-30 20:03:20 +00:00
parent 4fb8c77696
commit 4b16f8ab94

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -154,7 +154,7 @@ public class ArgumentHandler extends ArgumentParser {
if (optionString == null)
return;
StringTokenizer st = new StringTokenizer(optionString);
StringTokenizer st = new StringTokenizer(optionString, " ,~");
while (st.hasMoreTokens()) {
String token = st.nextToken();
int start = token.startsWith("-")? 1 : 0;