mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8259395: Patching automatic module with additional packages re-creates module without "requires java.base"
Reviewed-by: attila, alanb
This commit is contained in:
parent
039affc8bc
commit
cf942081a5
11 changed files with 454 additions and 1 deletions
|
@ -152,7 +152,7 @@ public final class ModulePatcher {
|
|||
packages.removeAll(descriptor.packages());
|
||||
if (!packages.isEmpty()) {
|
||||
Builder builder = JLMA.newModuleBuilder(descriptor.name(),
|
||||
/*strict*/ false,
|
||||
/*strict*/ descriptor.isAutomatic(),
|
||||
descriptor.modifiers());
|
||||
if (!descriptor.isAutomatic()) {
|
||||
descriptor.requires().forEach(builder::requires);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue