RFR: 8067951: System.loadLibrary cannot find library when path contains quoted entry
ivan.gerasimov at oracle.com
Tue Dec 23 13:31:34 UTC 2014
Content of the environment variable PATH is appended to java.library.path.
When ClassLoader.loadLibrary() is called, these paths are used to search
for the library file.
However, if the entry were quoted, the file locating fails.
According to this blog entry , quoted entries are allowed in PATH
under Windows, so we should deal with them somehow.
On the other hand, a valid path on Unix can contain quotes, so the
proposed patch can change the behavior for those rare environments that
have entries in PATH starting and ending with a quote.
However, we already have ambiguity in processing the paths, as they can
contain colon or semicolon...
Here's the proposed fix. It doesn't try to resolve all the ambiguities,
but only adds handling entirely quoted entries.
Would you please help review this fix?
More information about the core-libs-dev