Mercurial > hg > truffle
diff src/share/vm/classfile/classFileParser.cpp @ 17934:366c198c896d
8041918: BootstrapMethods attribute cannot be empty.
Summary: Allow a BootstrapMethods attribute that contains an empty bootstrap_methods table where num_bootstrap_methods is equal to zero.
Reviewed-by: coleenp, hseigel
author | lfoltan |
---|---|
date | Thu, 15 May 2014 09:25:27 -0400 |
parents | b6a2ba7d3ea7 |
children | ae92351815b6 f73af4455d7d |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Sun May 18 00:25:06 2014 +0400 +++ b/src/share/vm/classfile/classFileParser.cpp Thu May 15 09:25:27 2014 -0400 @@ -2777,7 +2777,7 @@ "Short length on BootstrapMethods in class file %s", CHECK); - 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);