mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
15 lines
426 B
Java
15 lines
426 B
Java
/*
|
|
* @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() { };
|
|
}
|
|
}
|