hotspot/src/share/vm/ci/ciField.cpp
changeset 6177 12835feea156
parent 5547 f4b087cbb361
child 7397 5b173b4ca846
--- a/hotspot/src/share/vm/ci/ciField.cpp	Thu Jul 22 15:29:22 2010 -0700
+++ b/hotspot/src/share/vm/ci/ciField.cpp	Fri Jul 23 10:07:46 2010 -0700
@@ -339,7 +339,7 @@
   if (_type != NULL) _type->print_name();
   else               tty->print("(reference)");
   tty->print(" is_constant=%s", bool_to_str(_is_constant));
-  if (_is_constant) {
+  if (_is_constant && is_static()) {
     tty->print(" constant_value=");
     _constant_value.print();
   }