Skip to content
This repository has been archived by the owner. It is now read-only.
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 2 changed files with 4 additions and 71 deletions.
@@ -741,13 +741,13 @@ public void close() throws IOException {
@Override @DefinedBy(Api.COMPILER)
public ClassLoader getClassLoader(Location 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 {
} catch (MalformedURLException e) {
throw new AssertionError(e);

This file was deleted.

1 comment on commit 5f9cd72

Copy link

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.