comparison src/share/vm/classfile/classFileParser.cpp @ 18066:4930a95e6ef5

8046213: Test test/runtime/classFileParserBug/TestEmptyBootstrapMethodsAttr.java Fails Reviewed-by: lfoltan
author asaha
date Mon, 09 Jun 2014 22:21:12 -0700
parents b207affc0618
children ccfff14361ea
comparison
equal deleted inserted replaced
18065:e8d870411858 18066:4930a95e6ef5
2778 2778
2779 void ClassFileParser::parse_classfile_bootstrap_methods_attribute(u4 attribute_byte_length, TRAPS) { 2779 void ClassFileParser::parse_classfile_bootstrap_methods_attribute(u4 attribute_byte_length, TRAPS) {
2780 ClassFileStream* cfs = stream(); 2780 ClassFileStream* cfs = stream();
2781 u1* current_start = cfs->current(); 2781 u1* current_start = cfs->current();
2782 2782
2783 guarantee_property(attribute_byte_length > sizeof(u2),
2784 "Invalid BootstrapMethods attribute length %u in class file %s",
2785 attribute_byte_length,
2786 CHECK);
2787
2788 cfs->guarantee_more(attribute_byte_length, CHECK); 2783 cfs->guarantee_more(attribute_byte_length, CHECK);
2789 2784
2790 int attribute_array_length = cfs->get_u2_fast(); 2785 int attribute_array_length = cfs->get_u2_fast();
2791 2786
2792 guarantee_property(_max_bootstrap_specifier_index < attribute_array_length, 2787 guarantee_property(_max_bootstrap_specifier_index < attribute_array_length,