7194612: api/java_lang/invoke/MethodHandles/Lookup/index.html#ExceptionsTests[findVirtualNSME] fails w/ -esa
Reviewed-by: kvn, twisti
--- 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() {