RFR: 8245956: JavaCompiler still uses File API instead of Path API in a specific case [v2]

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Tue Dec 8 01:45:29 UTC 2020


> Hi all,
> 
> `JavacFileManager.getClassLoader` uses `getLocation` which causes exception in some situations.
> This patch uses `getLocationAsPaths` instead of `getLocation` to solve it.
> Thanks you for taking the time to review.
> 
> Best Regards.

Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:

  Rename variable. Revise comment. Add print statement after the method getClassLoader.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1553/files
  - new: https://git.openjdk.java.net/jdk/pull/1553/files/d9e8700e..f4d82b43

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1553&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1553&range=00-01

  Stats: 5 lines in 2 files changed: 1 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1553.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1553/head:pull/1553

PR: https://git.openjdk.java.net/jdk/pull/1553


More information about the compiler-dev mailing list