Merge
authorjbachorik
Thu, 02 Apr 2015 17:22:22 +0000
changeset 30138 35599707b3f7
parent 30136 1c5202fa105b (diff)
parent 30137 effb5513d392 (current diff)
child 30140 e3293a43eaa6
child 30141 604c96a33147
Merge
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Thu Apr 02 12:14:43 2015 +0200
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Thu Apr 02 17:22:22 2015 +0000
@@ -4838,20 +4838,21 @@
       }
     }
   } else { // not interface
-    if (is_initializer) {
-      if (is_static || is_final || is_synchronized || is_native ||
-          is_abstract || (major_gte_15 && is_bridge)) {
-        is_illegal = true;
-      }
-    } else { // not initializer
-      if (is_abstract) {
-        if ((is_final || is_native || is_private || is_static ||
-            (major_gte_15 && (is_synchronized || is_strict)))) {
+    if (has_illegal_visibility(flags)) {
+      is_illegal = true;
+    } else {
+      if (is_initializer) {
+        if (is_static || is_final || is_synchronized || is_native ||
+            is_abstract || (major_gte_15 && is_bridge)) {
           is_illegal = true;
         }
-      }
-      if (has_illegal_visibility(flags)) {
-        is_illegal = true;
+      } else { // not initializer
+        if (is_abstract) {
+          if ((is_final || is_native || is_private || is_static ||
+              (major_gte_15 && (is_synchronized || is_strict)))) {
+            is_illegal = true;
+          }
+        }
       }
     }
   }