8148834: Update module-info reader/writer to 53.0
Reviewed-by: sundar, chegar
This commit is contained in:
parent
958506d2cb
commit
bed9953556
@ -154,7 +154,7 @@ final class ModuleInfo {
|
||||
int minor_version = in.readUnsignedShort();
|
||||
int major_version = in.readUnsignedShort();
|
||||
if (major_version < 53) {
|
||||
// throw invalidModuleDescriptor"Must be >= 53.0");
|
||||
throw invalidModuleDescriptor("Must be >= 53.0");
|
||||
}
|
||||
|
||||
ConstantPool cpool = new ConstantPool(in);
|
||||
|
@ -54,7 +54,7 @@ public final class ModuleInfoWriter {
|
||||
ClassWriter cw = new ClassWriter(0);
|
||||
|
||||
String name = md.name().replace('.', '/') + "/module-info";
|
||||
cw.visit(Opcodes.V1_8, ACC_MODULE, name, null, null, null);
|
||||
cw.visit(Opcodes.V1_9, ACC_MODULE, name, null, null, null);
|
||||
|
||||
cw.visitAttribute(new ModuleAttribute(md));
|
||||
cw.visitAttribute(new ConcealedPackagesAttribute(md.conceals()));
|
||||
|
Loading…
Reference in New Issue
Block a user