jdk/src/share/classes/java/lang/invoke/InvokeDynamic.java
author jrose
Wed, 23 Mar 2011 23:02:31 -0700
changeset 8822 8145ab9f5f86
parent 8821 jdk/src/share/classes/java/dyn/InvokeDynamic.java@2836ee97ee27
permissions -rw-r--r--
7012648: move JSR 292 to package java.lang.invoke and adjust names Summary: package and class renaming only; delete unused methods and classes; add @since tags; no code changes Reviewed-by: twisti
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7556
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     1
/*
8821
2836ee97ee27 6839872: remove implementation inheritance from JSR 292 APIs
jrose
parents: 7563
diff changeset
     2
 * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
7556
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     4
 *
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    10
 *
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    15
 * accompanied this code).
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    16
 *
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    20
 *
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    23
 * questions.
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    24
 */
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    25
8822
8145ab9f5f86 7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents: 8821
diff changeset
    26
package java.lang.invoke;
7556
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    27
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    28
/**
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    29
 * This is a place-holder class.  Some HotSpot implementations need to see it.
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    30
 */
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    31
final class InvokeDynamic {
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    32
    private InvokeDynamic() { throw new InternalError(); }  // do not instantiate
4a5711d43948 6979327: method handle invocation should use casts instead of type parameters to specify return type
jrose
parents:
diff changeset
    33
}