Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eclipse Warning



David,

that's usually no problem. The warning indicates, that, although the class (or any of it's parents) implements java.io.Serializable, does not have a serialVersionUID member. This member may only be required, if the class gets actually serialized. See the JavaDoc for more information:

http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html

You can disable this warning in the "Errors/Warnings" section of the preferences, under "Potential programming problems". I have this option disabled all the time.

Mo.


Am 29.01.2008 um 22:57 schrieb David Leader:

As my bioinformatics students are taught java using Eclipse - use Java 1.5 Scanners - I had to get them to show how to set Eclipse up for a small project (ex CodeWarrior) I had given them. Although my code ran fine, Eclipse was very nannyish warning me about sloppinesses (variables or methods that did not get used). Fair enough, I suppose. However for every class that had Swing/AWT in it it gave me the following type of warning in the class declaration:

"The serializable class BlahBlah does not declare a static final serialVersionUID field of type long"

What does this mean? Should I be concerned?

David

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Eclipse Warning (From: David Leader <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.