2008-09-29 12:00:29 +01:00
|
|
|
/**
|
2009-08-27 11:08:27 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2008-09-29 12:00:29 +01:00
|
|
|
* @bug 6747671
|
|
|
|
* @summary -Xlint:rawtypes
|
|
|
|
* @compile/ref=T6747671.out -XDrawDiagnostics -Xlint:rawtypes T6747671.java
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
class T6747671<E> {
|
|
|
|
|
|
|
|
static class B<X> {}
|
|
|
|
|
|
|
|
class A<X> {
|
|
|
|
class X {}
|
|
|
|
class Z<Y> {}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
A.X x1;//raw warning
|
|
|
|
A.Z z1;//raw warning
|
|
|
|
|
|
|
|
T6747671.B<Integer> b1;//ok
|
|
|
|
T6747671.B b2;//raw warning
|
|
|
|
|
|
|
|
A<String>.X x2;//ok
|
|
|
|
A<String>.Z<Integer> z2;//ok
|
|
|
|
A<B>.Z<A<B>> z3;//raw warning (2)
|
|
|
|
|
|
|
|
void test(Object arg1, B arg2) {//raw warning
|
2010-08-19 11:52:58 +01:00
|
|
|
boolean b = arg1 instanceof A;//ok
|
|
|
|
Object a = (A)arg1;//ok
|
2008-09-29 12:00:29 +01:00
|
|
|
A a2 = new A() {};//raw warning (2)
|
|
|
|
a2.new Z() {};//raw warning
|
|
|
|
}
|
2009-08-27 11:08:27 -07:00
|
|
|
}
|