d10e29af44
Bridge clash errors should noty be reported in TransTypes (as they are already reported in the frontend); cleanup polysig call code. Reviewed-by: vromero, cushon, forax
16 lines
471 B
Java
16 lines
471 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8013179
|
|
* @summary assertion failure in javac when compiling with -source 1.6 -target 1.6
|
|
* @compile/fail/ref=T8013179.out -source 6 -target 6 -Xlint:-options -XDrawDiagnostics T8013179.java
|
|
*/
|
|
|
|
import java.lang.invoke.MethodHandle;
|
|
|
|
class T8013179 {
|
|
static MethodHandle getNamedMember;
|
|
public static Object getMember(String name, Object rec) throws Throwable {
|
|
return getNamedMember.invoke(rec, name);
|
|
}
|
|
}
|