< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandle.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 248,257 **** --- 248,260 ---- * <p> * A non-virtual method handle to a specific virtual method implementation * can also be created. These do not perform virtual lookup based on * receiver type. Such a method handle simulates the effect of * an {@code invokespecial} instruction to the same method. + * A non-virtual method handle can also be created to simulate the effect + * of an {@code invokevirtual} or {@code invokeinterface} instruction on + * a private method (as applicable). * * <h1>Usage examples</h1> * Here are some examples of usage: * <blockquote><pre>{@code Object x, y; String s; int i;
< prev index next >