changeset 8139:65029655928a jdk8u111-b04

8159503: Amend Annotation Actions Reviewed-by: rprotacio
author poonam
date Fri, 08 Jul 2016 10:44:27 -0700
parents 28ce1b5f0c2e
children 3b0e5f01891f
files src/share/vm/classfile/classFileParser.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp	Tue Jul 05 14:40:55 2016 -0700
+++ b/src/share/vm/classfile/classFileParser.cpp	Fri Jul 08 10:44:27 2016 -0700
@@ -3969,6 +3969,11 @@
     // Make sure this is the end of class file stream
     guarantee_property(cfs->at_eos(), "Extra bytes at the end of class file %s", CHECK_(nullHandle));
 
+    if (_class_name == vmSymbols::java_lang_Object()) {
+      check_property(_local_interfaces == Universe::the_empty_klass_array(),
+                     "java.lang.Object cannot implement an interface in class file %s",
+                     CHECK_(nullHandle));
+    }
     // We check super class after class file is parsed and format is checked
     if (super_class_index > 0 && super_klass.is_null()) {
       Symbol*  sk  = cp->klass_name_at(super_class_index);