Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
19 lines
396 B
Java
19 lines
396 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8203436
|
|
* @summary javac should fail early when emitting illegal signature attributes
|
|
* @compile/fail/ref=T8203436b.out -XDrawDiagnostics T8203436b.java
|
|
*/
|
|
|
|
class T8203436b<X> {
|
|
interface A { }
|
|
interface B { }
|
|
|
|
class Inner { }
|
|
|
|
<Z extends A & B> T8203436b<Z> m() { return null; }
|
|
|
|
void test() {
|
|
m().new Inner() { };
|
|
}
|
|
}
|