mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8169069: Module system implementation refresh (11/2016)
Co-authored-by: Lois Foltan <lois.foltan@oracle.com> Co-authored-by: Harold Seigel <harold.seigel@oracle.com> Co-authored-by: Mandy Chung <mandy.chung@oracle.com> Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com> Co-authored-by: George Triantafillou <george.triantafillou@oracle.com> Reviewed-by: lfoltan, acorn, ctornqvi, mchung
This commit is contained in:
parent
16734f37d5
commit
988690303a
110 changed files with 1885 additions and 773 deletions
|
@ -55,7 +55,7 @@ public class ModuleSameCLMain {
|
|||
// Packages: p1
|
||||
// Packages exported: p1 is exported to unqualifiedly
|
||||
ModuleDescriptor descriptor_m1 =
|
||||
new ModuleDescriptor.Builder("m1")
|
||||
ModuleDescriptor.module("m1")
|
||||
.requires("java.base")
|
||||
.requires("m2")
|
||||
.exports("p1")
|
||||
|
@ -66,9 +66,9 @@ public class ModuleSameCLMain {
|
|||
// Packages: p2
|
||||
// Packages exported: package p2 is exported to m1
|
||||
ModuleDescriptor descriptor_m2 =
|
||||
new ModuleDescriptor.Builder("m2")
|
||||
ModuleDescriptor.module("m2")
|
||||
.requires("java.base")
|
||||
.exports("p2", "m1")
|
||||
.exports("p2", Set.of("m1"))
|
||||
.build();
|
||||
|
||||
// Set up a ModuleFinder containing all modules for this layer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue