test/langtools/tools/javac/8013179/T8013179.java
branchJDK-8200758-branch
changeset 56830 5126a14ac51e
parent 56829 f8fc6399a54f
parent 51043 6c449bdee4fa
child 56835 43caa6ff671a
equal deleted inserted replaced
56829:f8fc6399a54f 56830:5126a14ac51e
     1 /*
       
     2  * @test /nodynamiccopyright/
       
     3  * @bug 8013179
       
     4  * @summary assertion failure in javac when compiling with -source 1.6 -target 1.6
       
     5  * @compile/fail/ref=T8013179.out -source 6 -target 6 -Xlint:-options -XDrawDiagnostics T8013179.java
       
     6  */
       
     7 
       
     8 import java.lang.invoke.MethodHandle;
       
     9 
       
    10 class T8013179 {
       
    11     static MethodHandle getNamedMember;
       
    12     public static Object getMember(String name, Object rec) throws Throwable {
       
    13         return getNamedMember.invoke(rec, name);
       
    14     }
       
    15 }