hotspot/src/share/vm/runtime/arguments.cpp
changeset 2534 08dac9ce0cd7
parent 2348 4e71ed4c2709
child 2536 041a415cdea9
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Wed Apr 08 00:12:59 2009 -0700
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Wed Apr 08 10:56:49 2009 -0700
@@ -2619,6 +2619,13 @@
   }
 #endif // PRODUCT
 
+  if (EnableMethodHandles && !AnonymousClasses) {
+    if (!FLAG_IS_DEFAULT(AnonymousClasses)) {
+      warning("forcing AnonymousClasses true to enable EnableMethodHandles");
+    }
+    AnonymousClasses = true;
+  }
+
   if (PrintGCDetails) {
     // Turn on -verbose:gc options as well
     PrintGC = true;