jdk-24/langtools/test/tools/javac/serial/SerialWarn.java
Andreas Lundblad 9691505077 7152104: javac should not warn about missing serialVersionUID for anonymous inner classes
Javac no longer issues warnings for missing serialVersionUID in anonymous classes.

Reviewed-by: jlahoda
2016-04-18 22:25:50 +02:00

12 lines
337 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4854628
* @summary include Throwable subclasses in missing serialVersionUID warning
* @author gafter
*
* @compile -Werror SerialWarn.java
* @compile/fail/ref=SerialWarn.out -XDrawDiagnostics -Xlint:serial -Werror SerialWarn.java
*/
class SerialWarn extends Throwable {}