Add module-info.java for kotlin-reflect
The standard way of loading resources with built-ins metadata from the current class loader no longer works in the modular mode on Java 9 because the current class loader is for module 'kotlin.reflect', but the metadata is located in the module 'kotlin.stdlib'. On Java 9, we now use the class loader of 'kotlin.stdlib' to load these resources. #KT-21266 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
OK
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
module namedWithIndirectDependencyViaOtherModule {
|
||||
requires kotlin.reflect;
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.text.Regex
|
||||
|
||||
fun f1(): List<String?> = emptyList()
|
||||
fun f2(): Array<Lazy<Unit>> = arrayOf()
|
||||
fun f3(map: Map<Int, Regex>): Collection<Regex> =
|
||||
map.filterNot { (key, entry) -> "$key".equals(entry.toString(), ignoreCase = true) }.values
|
||||
Reference in New Issue
Block a user