Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/defaultMethods.hpp @ 12318:36b97be47bde
8011311: Private interface methods. Default conflicts:ICCE. no erased_super_default.
Reviewed-by: coleenp, bharadwaj, minqi
author | acorn |
---|---|
date | Tue, 01 Oct 2013 08:10:42 -0400 |
parents | 4735d2c84362 |
children |
comparison
equal
deleted
inserted
replaced
12317:a5ac0873476c | 12318:36b97be47bde |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
42 // "overpass" method that is an instance method that redirects to the | 42 // "overpass" method that is an instance method that redirects to the |
43 // default method. Overpass methods are added to the methods lists for | 43 // default method. Overpass methods are added to the methods lists for |
44 // the class. | 44 // the class. |
45 static void generate_default_methods( | 45 static void generate_default_methods( |
46 InstanceKlass* klass, GrowableArray<Method*>* mirandas, TRAPS); | 46 InstanceKlass* klass, GrowableArray<Method*>* mirandas, TRAPS); |
47 | |
48 | |
49 // Called during linking when an invokespecial to an direct interface | |
50 // method is found. Selects and returns a method if there is a unique | |
51 // default method in the 'super_iface' part of the hierarchy which is | |
52 // also a candidate default for 'this_klass'. Otherwise throws an AME. | |
53 static Method* find_super_default( | |
54 Klass* this_klass, Klass* super_iface, | |
55 Symbol* method_name, Symbol* method_sig, TRAPS); | |
56 }; | 47 }; |
57 | |
58 #endif // SHARE_VM_CLASSFILE_DEFAULTMETHODS_HPP | 48 #endif // SHARE_VM_CLASSFILE_DEFAULTMETHODS_HPP |