test/tools/javac/generics/WrongNew.java
Print this page
*** 25,35 ****
* @test
* @bug 4487977
* @summary generics: javac generares "new" of wrong class
* @author gafter
*
! * @compile -source 1.5 WrongNew.java
* @run main WrongNew
*/
class WrongNewList<T> {}
class WrongNewArrayList<T> extends WrongNewList<T> {}
--- 25,35 ----
* @test
* @bug 4487977
* @summary generics: javac generares "new" of wrong class
* @author gafter
*
! * @compile WrongNew.java
* @run main WrongNew
*/
class WrongNewList<T> {}
class WrongNewArrayList<T> extends WrongNewList<T> {}