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 }