--- old/src/hotspot/share/opto/castnode.cpp 2017-09-28 12:26:36.595254868 +0200 +++ new/src/hotspot/share/opto/castnode.cpp 2017-09-28 12:26:36.295254873 +0200 @@ -411,7 +411,7 @@ // ValueTypePtrNode from the call. if (can_reshape && in(0) == NULL && - phase->C->can_add_value_type_ptr() && + phase->C->can_add_value_type() && type()->isa_valuetypeptr() && in(1) != NULL && in(1)->is_Proj() && in(1)->in(0) != NULL && in(1)->in(0)->is_CallStaticJava() &&