changeset 16486:667006897700

8148834: Update module-info reader/writer to 53.0 Reviewed-by: sundar, chegar
author alanb
date Thu, 19 May 2016 13:10:08 +0100
parents 7af9466123ed
children 4f217f656946
files src/java.base/share/classes/java/lang/module/ModuleInfo.java src/java.base/share/classes/jdk/internal/module/ModuleInfoWriter.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/module/ModuleInfo.java	Thu May 19 13:08:36 2016 +0100
+++ b/src/java.base/share/classes/java/lang/module/ModuleInfo.java	Thu May 19 13:10:08 2016 +0100
@@ -154,7 +154,7 @@
         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);
--- a/src/java.base/share/classes/jdk/internal/module/ModuleInfoWriter.java	Thu May 19 13:08:36 2016 +0100
+++ b/src/java.base/share/classes/jdk/internal/module/ModuleInfoWriter.java	Thu May 19 13:10:08 2016 +0100
@@ -54,7 +54,7 @@
         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()));