jdk/src/share/classes/java/lang/invoke/MemberName.java
changeset 13612 275711a5df25
parent 13424 5de7e57cdc02
child 14089 0a41b980d62a
--- a/jdk/src/share/classes/java/lang/invoke/MemberName.java	Fri Aug 17 13:42:25 2012 -0700
+++ b/jdk/src/share/classes/java/lang/invoke/MemberName.java	Tue Aug 28 13:14:59 2012 -0700
@@ -306,12 +306,6 @@
         return this;
     }
 
-    private void setFlags(int flags) {
-        this.flags = flags;
-        assert(testAnyFlags(ALL_KINDS));
-        assert(referenceKindIsConsistent());
-    }
-
     private boolean testFlags(int mask, int value) {
         return (flags & mask) == value;
     }
@@ -452,8 +446,10 @@
         this.clazz = defClass;
         this.name = name;
         this.type = type;
-        setFlags(flags);
+        this.flags = flags;
+        assert(testAnyFlags(ALL_KINDS));
         assert(this.resolution == null);  // nobody should have touched this yet
+        //assert(referenceKindIsConsistent());  // do this after resolution
     }
 
     private void expandFromVM() {