src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java
changeset 58054 ee230ad8cfef
parent 53018 8bf9268df0e2
equal deleted inserted replaced
58053:1a296c9064dc 58054:ee230ad8cfef
     1 /*
     1 /*
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2019, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    38  * {@code null} value.
    38  * {@code null} value.
    39  *
    39  *
    40  * @since 11
    40  * @since 11
    41  */
    41  */
    42 public final class ConstantBootstraps {
    42 public final class ConstantBootstraps {
       
    43     /**
       
    44      * Do not call.
       
    45      */
       
    46     @Deprecated(forRemoval=true, since="14")
       
    47     public ConstantBootstraps() {}
       
    48 
    43     // implements the upcall from the JVM, MethodHandleNatives.linkDynamicConstant:
    49     // implements the upcall from the JVM, MethodHandleNatives.linkDynamicConstant:
    44     /*non-public*/
    50     /*non-public*/
    45     static Object makeConstant(MethodHandle bootstrapMethod,
    51     static Object makeConstant(MethodHandle bootstrapMethod,
    46                                // Callee information:
    52                                // Callee information:
    47                                String name, Class<?> type,
    53                                String name, Class<?> type,