blob: 2e6def595195591b4fa1259060ed16f8aed94969 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 7152104
* @summary Make sure no warning is emitted for anonymous classes
* without serialVersionUID
* @compile SerialWarn.java
* @compile -Werror -XDrawDiagnostics -Xlint:serial SerialWarnAnon.java
*/
class SerialWarnAnon {
interface SerialWarnAnonInterface extends java.io.Serializable { }
Object m() {
return new SerialWarnAnonInterface() { };
}
}