1.1 --- a/src/share/vm/runtime/globals.cpp Wed Apr 06 17:32:09 2011 -0700 1.2 +++ b/src/share/vm/runtime/globals.cpp Thu Apr 07 17:02:30 2011 -0700 1.3 @@ -63,6 +63,12 @@ 1.4 1.5 bool Flag::is_unlocked() const { 1.6 if (strcmp(kind, "{diagnostic}") == 0) { 1.7 + if (strcmp(name, "EnableInvokeDynamic") == 0 && UnlockExperimentalVMOptions && !UnlockDiagnosticVMOptions) { 1.8 + // transitional logic to allow tests to run until they are changed 1.9 + static int warned; 1.10 + if (++warned == 1) warning("Use -XX:+UnlockDiagnosticVMOptions before EnableInvokeDynamic flag"); 1.11 + return true; 1.12 + } 1.13 return UnlockDiagnosticVMOptions; 1.14 } else if (strcmp(kind, "{experimental}") == 0 || 1.15 strcmp(kind, "{C2 experimental}") == 0) {