--- old/hotspot/src/share/vm/classfile/classFileParser.cpp 2017-09-12 11:16:11.255270997 +0200 +++ new/hotspot/src/share/vm/classfile/classFileParser.cpp 2017-09-12 11:16:11.119268548 +0200 @@ -2182,6 +2182,9 @@ void ClassFileParser::ClassAnnotationCollector::apply_to(InstanceKlass* ik) { assert(ik != NULL, "invariant"); ik->set_is_contended(is_contended()); + if (is_value_capable_class()) { + ik->set_has_vcc_annotation(); + } } #define MAX_ARGS_SIZE 255