< prev index next >
src/hotspot/share/ci/ciConstant.cpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -54,15 +54,15 @@
tty->print("%f", _value._float);
break;
case T_DOUBLE:
tty->print("%lf", _value._double);
break;
- case T_OBJECT:
- case T_ARRAY:
- _value._object->print();
- break;
default:
+ if (is_reference_type(basic_type())) {
+ _value._object->print();
+ } else {
tty->print("ILLEGAL");
+ }
break;
}
tty->print(">");
}
< prev index next >