Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8259645: Revert JDK-8245956 JavaCompiler still uses File API instead …
…of Path API in a specific case

Reviewed-by: chegar
  • Loading branch information
jonathan-gibbons committed Jan 12, 2021
1 parent b03880e commit 5f9cd72c5460012d88a91f394f99a89e1ed9331c
Showing with 4 additions and 71 deletions.
  1. +4 −4 src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java
  2. +0 −67 test/langtools/tools/javac/T8245956/T8245956.java
@@ -741,13 +741,13 @@ public void close() throws IOException {
@Override @DefinedBy(Api.COMPILER)
public ClassLoader getClassLoader(Location location) {
checkNotModuleOrientedLocation(location);
Collection<? extends Path> searchPath = getLocationAsPaths(location);
if (searchPath == null)
Iterable<? extends File> path = getLocation(location);
if (path == null)
return null;
ListBuffer<URL> lb = new ListBuffer<>();
for (Path p : searchPath) {
for (File f: path) {
try {
lb.append(p.toUri().toURL());
lb.append(f.toURI().toURL());
} catch (MalformedURLException e) {
throw new AssertionError(e);
}

This file was deleted.

1 comment on commit 5f9cd72

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 5f9cd72 Jan 12, 2021

Please sign in to comment.