annotate src/hotspot/share/classfile/defaultMethods.hpp @ 54526:ee29b516a36a

revert changes
author jlaskey
date Wed, 23 Jan 2019 16:09:20 -0400
parents 71c04702a3d5
children
rev   line source
kamg@14385 1 /*
coleenp@54304 2 * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
kamg@14385 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
kamg@14385 4 *
kamg@14385 5 * This code is free software; you can redistribute it and/or modify it
kamg@14385 6 * under the terms of the GNU General Public License version 2 only, as
kamg@14385 7 * published by the Free Software Foundation.
kamg@14385 8 *
kamg@14385 9 * This code is distributed in the hope that it will be useful, but WITHOUT
kamg@14385 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
kamg@14385 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kamg@14385 12 * version 2 for more details (a copy is included in the LICENSE file that
kamg@14385 13 * accompanied this code).
kamg@14385 14 *
kamg@14385 15 * You should have received a copy of the GNU General Public License version
kamg@14385 16 * 2 along with this work; if not, write to the Free Software Foundation,
kamg@14385 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
kamg@14385 18 *
kamg@14385 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
kamg@14385 20 * or visit www.oracle.com if you need additional information or have any
kamg@14385 21 * questions.
kamg@14385 22 *
kamg@14385 23 */
kamg@14385 24
coleenp@54304 25 #ifndef SHARE_CLASSFILE_DEFAULTMETHODS_HPP
coleenp@54304 26 #define SHARE_CLASSFILE_DEFAULTMETHODS_HPP
kamg@14385 27
kamg@14385 28 #include "runtime/handles.hpp"
kamg@14385 29 #include "utilities/growableArray.hpp"
kamg@14385 30 #include "utilities/exceptions.hpp"
kamg@14385 31
kamg@14385 32 class InstanceKlass;
kamg@14385 33 class Symbol;
kamg@14385 34 class Method;
kamg@14385 35
kamg@14385 36 class DefaultMethods : AllStatic {
kamg@14385 37 public:
kamg@14385 38
kamg@14385 39 // Analyzes class and determines which default methods are inherited
kamg@14385 40 // from interfaces (and has no other implementation). For each method
kamg@14385 41 // (and each different signature the method could have), create an
kamg@14385 42 // "overpass" method that is an instance method that redirects to the
kamg@14385 43 // default method. Overpass methods are added to the methods lists for
kamg@14385 44 // the class.
kamg@14385 45 static void generate_default_methods(
mgronlun@34666 46 InstanceKlass* klass, const GrowableArray<Method*>* mirandas, TRAPS);
kamg@14385 47 };
coleenp@54304 48 #endif // SHARE_CLASSFILE_DEFAULTMETHODS_HPP