[PATCH]: Still a problem with long classpath on Windows

Aleksey Shipilev shade at redhat.com
Tue Jan 15 12:10:51 UTC 2019


On 1/9/19 2:19 AM, Basil Peace wrote:
> A year ago, a patch fixing problem with long classpath on Windows
http://cr.openjdk.java.net/~shade/jmh/long-classpath-2.patch was accepted.
> Unfortunately, that patch didn't take into account a situation where a temp directory and
classpath files are on different drives.
> In this case, Path#relativize doesn't work, and we got exception:
>     'other' has different root

D'oh. Thanks.

> Proposed patch: https://gist.github.com/grv87/b52af66ea49ad50fdb4c4231be489bc6

Okay, that sounds sensible.

If you are willing to contribute this patch to JMH, you need:
 a) Sign the OCA, as per http://openjdk.java.net/contribute/
 b) Put the patch somewhere on OpenJDK infra. Posting the simple patch in-line in this message would
be good enough.

-Aleksey



More information about the jmh-dev mailing list