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:04:54 UTC 2021


On Tue, 12 Jan 2021 19:59:27 GMT, Marcus Hirt <hirt at openjdk.org> wrote:

>> 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.

Try this:
>export _JAVA_OPTIONS=
>./build.sh --runAgentExample

-------------

PR: https://git.openjdk.java.net/jmc/pull/183


More information about the jmc-dev mailing list