3
# Date 1467999867 25200
4
# Fri Jul 08 10:44:27 2016 -0700
5
# Node ID 65029655928a834018a6793253c9b2699044af92
6
# Parent 28ce1b5f0c2e4fe58341680745546eaf439ed4c3
7
8159503: Amend Annotation Actions
11
openjdk/hotspot/src/share/vm/classfile/classFileParser.cpp | 5 +++++
12
1 file changed, 5 insertions(+)
14
--- openjdk/hotspot/src/share/vm/classfile/classFileParser.cpp.orig
15
+++ openjdk/hotspot/src/share/vm/classfile/classFileParser.cpp
16
@@ -3219,6 +3219,11 @@ instanceKlassHandle ClassFileParser::par
17
// Make sure this is the end of class file stream
18
guarantee_property(cfs->at_eos(), "Extra bytes at the end of class file %s", CHECK_(nullHandle));
20
+ if (_class_name == vmSymbols::java_lang_Object()) {
21
+ check_property(local_interfaces == Universe::the_empty_system_obj_array(),
22
+ "java.lang.Object cannot implement an interface in class file %s",
23
+ CHECK_(nullHandle));
25
// We check super class after class file is parsed and format is checked
26
if (super_class_index > 0 && super_klass.is_null()) {
27
Symbol* sk = cp->klass_name_at(super_class_index);