mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Load automatic module names correctly
Load the Automatic-Module-Name manifest entry value if it's present (see http://mail.openjdk.java.net/pipermail/jpms-spec-observers/2017-May/000877.html), otherwise sanitize the name of the .jar file, throwing out all chars except alphanumeric, duplicate dots and a version qualifier
This commit is contained in:
4
compiler/testData/javaModules/automaticModuleNames/main/module-info.java
vendored
Normal file
4
compiler/testData/javaModules/automaticModuleNames/main/module-info.java
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module main {
|
||||
requires auto.mat1c.m0d.ule;
|
||||
requires automodule2;
|
||||
}
|
||||
6
compiler/testData/javaModules/automaticModuleNames/main/usage.kt
vendored
Normal file
6
compiler/testData/javaModules/automaticModuleNames/main/usage.kt
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import m1.A
|
||||
import m2.B
|
||||
|
||||
fun usage(): String {
|
||||
return "${A()}${B()}"
|
||||
}
|
||||
Reference in New Issue
Block a user