RFR: 8067951: System.loadLibrary cannot find library when path contains quoted entry
ivan.gerasimov at oracle.com
Sun Jan 4 20:23:59 UTC 2015
On 04.01.2015 22:50, Alan Bateman wrote:
> On 03/01/2015 17:39, Ivan Gerasimov wrote:
>> Currently, there are tree variants of ClassLoaderHelper: for Windows,
>> for Unix and for MacOS.
>> We have to either duplicate code in Unix and MacOS realizations, or
>> introduce another Helper class for initializing paths only, which
>> would have only two realizations: for Windows and all Unixes.
> When I made the comment then I was thinking of a method such as
> allowsQuotedPathElements (or a better name) that returns a boolean to
> indicate if quoting of path elements is allowed or not. That would
> abstract the capability a bit without needing to do isWindows checks.
Ah, I see.
Though, not needing to check for quotes allows a bit more efficient
implementation, so splitting the code for different platforms may also
I did it with another helper class in this webrev:
More information about the core-libs-dev