blob: 0ac6ec75dfe475f5c3aae998f071090e6caa022a [file] [log] [blame]
class A<T> {
public void foo(Object object) {
if (object instanceof <error descr="Illegal generic type for instanceof">B</error>) {}
if (object instanceof A.B) {}
if (object instanceof A<?>.B) {}
if (object instanceof A<?>) {}
if (object instanceof <error descr="Illegal generic type for instanceof">A<String></error>) {}
if (object instanceof A) {}
if (object instanceof A[]) {}
if (object instanceof <error descr="Illegal generic type for instanceof">B[]</error>) {}
if (object instanceof A.B[]) {}
}
private class B {
}
}
class A1 {
public void foo(Object object) {
if (object instanceof B1) {}
if (object instanceof A1.B1) {}
if (object instanceof B1[]) {}
}
private class B1 {
}
}
class BreakpointTree<TP> {
void foo(Node node) {
if (node instanceof BNode<?>) {
}
}
static class BNode<B extends XBreakpoint<?>> extends Node{}
}
class Node {}
class XBreakpoint<SR>{}
class GenericInnerClass<E> {
private void problem( Base base ) {
if ( base instanceof First) {}
}
private class Base {
}
private class First<T> extends Base {
}
}