Merge pull request #5522 from eatkins/jdk9-dummy-virtual-file

Fix DefinesClass implementation for jdk > 8
This commit is contained in:
eugene yokota 2020-05-01 13:01:52 -04:00 committed by GitHub
commit 8f4d3f3f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ object Defaults extends BuildCommon {
classpathEntryDefinesClass := {
val converter = fileConverter.value
val f = FileValueCache({ x: NioPath =>
Locate.definesClass(converter.toVirtualFile(x))
if (x.getFileName.toString != "rt.jar") Locate.definesClass(converter.toVirtualFile(x))
else ((_: String) => false): DefinesClass
}).get;
{ (x: File) =>
f(x.toPath)