D
Denis Labon
I compile the following code and it gives me a warning about
"serializable class".
Do some1 know what the warning means?
I compile the code in Suse 9.0 and use java v1.5.0-beta2.
COMPILE COMMAND: javac -Xlint *.java
Thanx!
/*
Test.java:14: warning: [serial] serializable class Test has no
definition of serialVersionUID
public class Test extends JOptionPane
^
1 warning
*/
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class Test extends JOptionPane
{
public Test( )
{
super();
}
public static void main( String args[] )
{
}
}
"serializable class".
Do some1 know what the warning means?
I compile the code in Suse 9.0 and use java v1.5.0-beta2.
COMPILE COMMAND: javac -Xlint *.java
Thanx!
/*
Test.java:14: warning: [serial] serializable class Test has no
definition of serialVersionUID
public class Test extends JOptionPane
^
1 warning
*/
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class Test extends JOptionPane
{
public Test( )
{
super();
}
public static void main( String args[] )
{
}
}