Issue
Eventhough this class is not intended ot set to be serializable, I'm getting this unusual warning! Could someone let me know if you have come across such odd warning?!
C:\Documents and Settings\...filename.java:60: warning: [serial] serializable class SomeClass has no definition of serialVersionUID
public class NewPortalConnection extends javax.swing.JFrame {
Regards
Solution
This warning comes when you derive from a class that implements Serializable. In your case, the Serializable parent class is JFrame.
You can suppress this warning with @SuppressWarnings("serial"), or give the class a serialVersionUID: private static final long serialVersionUID = ...;
(with a long value for the dots).
There is a discussion here on SO on which is preferable.
Answered By - S.L. Barth
Answer Checked By - Terry (JavaFixing Volunteer)