test/langtools/tools/javac/8013179/T8013179.java
changeset 50250 04f9bb270ab8
equal deleted inserted replaced
50249:5715962c8831 50250:04f9bb270ab8
       
     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 }