src/share/vm/classfile/defaultMethods.hpp

changeset 5786
36b97be47bde
parent 4245
4735d2c84362
child 6876
710a3c8b516e
equal deleted inserted replaced
5785:a5ac0873476c 5786: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

mercurial