Lexical Tools

Java 5.0 - Serialization

Below lists modifications in lvg for Java 5.0:

  • serialUID

    Support has been added to serialization to handle enumerated types. Any class extends Jav a collections classes need the serialVerionsUID. The Javadoc for the Serializable interface has been expanded to more completely specify the role and usage of serialVersionUIDs, and to emphasize the need to specify explicit serialVersionUIDs for serializable classes.

    Example:

    
    public class foo<E> extends Vector<E> {
    ...
    
        private final static long serialVersionUID = 5L;
    
    }