RFR: 6946: There should be an option to build the agent in the build script [v16]
Marcus Hirt
hirt at openjdk.java.net
Tue Jan 12 20:01:58 UTC 2021
On Tue, 12 Jan 2021 19:57:37 GMT, Marcus Hirt <hirt at openjdk.org> wrote:
>> this is good question about "java:0", but which kind of version you will choose, arguments valid for 13 and higher ?
>
> java:0 is simply because the parser assumes there will be nothing before the version output. But people use things like _JAVA_OPTIONS, which may cause other output in between.
So, I guess the solution is to either not bother with version checks, or to accept that sometimes the version can't be parsed properly, detect it, possibly warn, and then attempt everything no-matter what.
-------------
PR: https://git.openjdk.java.net/jmc/pull/183
More information about the jmc-dev
mailing list