6a466fe7ae
8160675: Issue lint warning for non-serializable non-transient instance fields in serializable type Reviewed-by: erikj, sspitsyn, jlahoda, vromero, rriggs, smarks
15 lines
342 B
Java
15 lines
342 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8202056
|
|
* @compile/ref=InterfaceFields.out -XDrawDiagnostics -Xlint:serial InterfaceFields.java
|
|
*/
|
|
|
|
import java.io.*;
|
|
|
|
interface InterfaceFields extends Serializable {
|
|
public static final int serialVersionUID = 12345;
|
|
|
|
public static final ObjectStreamField[] serialPersistentFields = {};
|
|
}
|
|
|