changeset 5219:f0d3edacea3a

8051844: BootstrapMethods attribute cannot be empty again Summary: Fix JDK-8034926 was pushed second time after JDK-8041918 and cause it again. Recommit the fix JDK-8041918. Reviewed-by: lfoltan
author sgabdura
date Thu, 31 Jul 2014 12:10:10 +0200
parents 4913b2634773
children 16f41a7c5c28
files src/share/vm/classfile/classFileParser.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp	Thu Jul 24 09:33:08 2014 -0400
+++ b/src/share/vm/classfile/classFileParser.cpp	Thu Jul 31 12:10:10 2014 +0200
@@ -2676,7 +2676,7 @@
   ClassFileStream* cfs = stream();
   u1* current_start = cfs->current();
 
-  guarantee_property(attribute_byte_length > sizeof(u2),
+  guarantee_property(attribute_byte_length >= sizeof(u2),
                      "Invalid BootstrapMethods attribute length %u in class file %s",
                      attribute_byte_length,
                      CHECK);