RFC: JMC-6173: jmc -open requires full path
Carmine Vincenzo Russo
carusso at redhat.com
Fri Jun 21 12:30:47 UTC 2019
Hello,
The patch addresses the issue JMC-6173[0].
I have added a check to see if the path is full or not. If it falls in the
second case, starting from the user home it recursively search for the
given file name in all the not hidden folder.
There was also a problem with relative path like ~/record/test.jfr, now
fixed.
I tested the patch with full path, relative path, filename only and null
value.
I'm planning to add few tests, at least for a valid filename, an invalid
filename and a null value.
See the attached patch bellow and let me know what you think.
Thank you!
Carmine
[0] https://bugs.openjdk.java.net/browse/JMC-6173
--
Carmine Vincenzo Russo
More information about the jmc-dev
mailing list