hotspot/src/share/vm/runtime/arguments.cpp
changeset 2570 ecc7862946d4
parent 2536 041a415cdea9
child 2741 34e2a243d69a
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Mon Apr 20 14:48:03 2009 -0700
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Tue Apr 21 23:21:04 2009 -0700
@@ -2627,6 +2627,12 @@
   }
 #endif // PRODUCT
 
+  if (EnableInvokeDynamic && !EnableMethodHandles) {
+    if (!FLAG_IS_DEFAULT(EnableMethodHandles)) {
+      warning("forcing EnableMethodHandles true to allow EnableInvokeDynamic");
+    }
+    EnableMethodHandles = true;
+  }
   if (EnableMethodHandles && !AnonymousClasses) {
     if (!FLAG_IS_DEFAULT(AnonymousClasses)) {
       warning("forcing AnonymousClasses true to enable EnableMethodHandles");