changeset 14661:e4af8eb551c3

Fix typo in constant
author redestad
date Sat, 05 Dec 2015 16:23:33 +0000
parents 7d1db02e8d8f
children 210190f00665
files src/java.base/share/classes/java/lang/module/ModuleInfo.java src/java.base/share/classes/jdk/internal/module/ClassFileAttributes.java src/java.base/share/classes/jdk/internal/module/ClassFileConstants.java
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/module/ModuleInfo.java	Sat Dec 05 16:07:01 2015 +0000
+++ b/src/java.base/share/classes/java/lang/module/ModuleInfo.java	Sat Dec 05 16:23:33 2015 +0000
@@ -223,9 +223,9 @@
                     readMainClassAttribute(in, cpool);
                     break;
 
-                case SYNETHETIC :
+                case SYNTHETIC :
                     if (length != 0) {
-                        throw invalidModuleDescriptor(SYNETHETIC + " attribute"
+                        throw invalidModuleDescriptor(SYNTHETIC + " attribute"
                                                       + " length should be zero");
                     }
                     break;
--- a/src/java.base/share/classes/jdk/internal/module/ClassFileAttributes.java	Sat Dec 05 16:07:01 2015 +0000
+++ b/src/java.base/share/classes/jdk/internal/module/ClassFileAttributes.java	Sat Dec 05 16:23:33 2015 +0000
@@ -243,7 +243,7 @@
      */
     static class SyntheticAttribute extends Attribute {
         SyntheticAttribute() {
-            super(SYNETHETIC);
+            super(SYNTHETIC);
         }
 
         @Override
--- a/src/java.base/share/classes/jdk/internal/module/ClassFileConstants.java	Sat Dec 05 16:07:01 2015 +0000
+++ b/src/java.base/share/classes/jdk/internal/module/ClassFileConstants.java	Sat Dec 05 16:23:33 2015 +0000
@@ -34,7 +34,7 @@
 
     // Attribute names
     public static final String MODULE             = "Module";
-    public static final String SYNETHETIC         = "Synthetic";
+    public static final String SYNTHETIC          = "Synthetic";
     public static final String CONCEALED_PACKAGES = "ConcealedPackages";
     public static final String MAIN_CLASS         = "MainClass";
     public static final String VERSION            = "Version";