Skip to content

Commit 6bba8f7

Browse files
committed
Adapt to change in ClassLoader in JDK 9
A package protected method was added: Stream<Package> packages() The private accessor method for `val package` in our subclass now violates the "cannot tighten access" rule. Making it `private[this]` avoids creating an accessor.
1 parent 8136057 commit 6bba8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/scala/reflect/internal/util/AbstractFileClassLoader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class AbstractFileClassLoader(val root: AbstractFile, parent: ClassLoader)
9292
}
9393
}
9494

95-
private val packages = mutable.Map[String, Package]()
95+
private[this] val packages = mutable.Map[String, Package]()
9696

9797
override def definePackage(name: String, specTitle: String, specVersion: String, specVendor: String, implTitle: String, implVersion: String, implVendor: String, sealBase: URL): Package = {
9898
throw new UnsupportedOperationException()

0 commit comments

Comments
 (0)