8148834: Update module-info reader/writer to 53.0

Reviewed-by: sundar, chegar
This commit is contained in:
Alan Bateman 2016-05-19 13:10:08 +01:00
parent 958506d2cb
commit bed9953556
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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()));