jdk/test/java/lang/invoke/ProtectedMemberDifferentPackage/p2/T3.java
author alanb
Fri, 10 Feb 2017 09:04:39 +0000
changeset 43712 5dfd0950317c
parent 40684 2e37c119dc2a
permissions -rw-r--r--
8173393: Module system implementation refresh (2/2017) Reviewed-by: dfuchs, psandoz, mchung, alanb Contributed-by: alan.bateman@oracle.com, mandy.chung@oracle.com, claes.redestad@oracle.com, alex.buckley@oracle.com, mark.reinhold@oracle.com, john.r.rose@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23022
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     1
/*
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     4
 *
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     8
 *
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    13
 * accompanied this code).
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    14
 *
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    18
 *
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    21
 * questions.
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    22
 */
40684
2e37c119dc2a 8164982: Fix legal notices in java/lang, java/net, java/util tests.
shurailine
parents: 23022
diff changeset
    23
23022
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    24
package p2;
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    25
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    26
import p1.T2;
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    27
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    28
import java.lang.invoke.MethodHandles;
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    29
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    30
public class T3 extends T2 {
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    31
    public static MethodHandles.Lookup lookup() { return MethodHandles.lookup(); }
ede1afdc49a2 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
vlivanov
parents:
diff changeset
    32
}