changeset 14303:c63cc080ff93

Exception message incorrect when InvalidModuleDescriptorException thrown because module-info.class has non-empty method table Contributed-by: ali.ebrahimi1781@gmail.com
author alanb
date Tue, 03 Nov 2015 14:21:07 +0000
parents 34a20e1f0d8b
children d770953d20e5
files src/java.base/share/classes/java/lang/module/ModuleInfo.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/module/ModuleInfo.java	Sun Nov 01 18:30:53 2015 +0000
+++ b/src/java.base/share/classes/java/lang/module/ModuleInfo.java	Tue Nov 03 14:21:07 2015 +0000
@@ -186,7 +186,7 @@
 
         int methods_count = in.readUnsignedShort();
         if (methods_count > 0)
-            throw invalidModuleDescriptor("Bad #fields");
+            throw invalidModuleDescriptor("Bad #methods");
 
         int attributes_count = in.readUnsignedShort();