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.
12 lines
279 B
Java
12 lines
279 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4881267
|
|
* @summary improve diagnostic for "instanceof T" for type parameter T
|
|
* @compile/fail/ref=T4881267.out -XDrawDiagnostics T4881267.java
|
|
*/
|
|
|
|
class T4881267 {
|
|
<T> void m(Object o) {
|
|
boolean b = o instanceof T;
|
|
}
|
|
}
|