~openjdk/openjdk/openjdk7

« back to all changes in this revision

Viewing changes to patches/sec-webrev-8u111-S8159503.hotspot.patch

  • Committer: Matthias Klose
  • Date: 2017-02-07 10:02:38 UTC
  • Revision ID: doko@ubuntu.com-20170207100238-gpshn1lc935esdpp
openjdk-7 (7u121-2.6.8-1) experimental; urgency=medium

  * IcedTea release 2.6.8 (based on 7u121):

 -- Matthias Klose <doko@ubuntu.com>  Mon, 14 Nov 2016 13:38:40 +0100

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# HG changeset patch
2
 
# User poonam
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
8
 
Reviewed-by: rprotacio
9
 
 
10
 
---
11
 
 openjdk/hotspot/src/share/vm/classfile/classFileParser.cpp |    5 +++++
12
 
 1 file changed, 5 insertions(+)
13
 
 
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));
19
 
 
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));
24
 
+    }
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);