This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131990

Summary: Don't mark private serialization methods as unused
Product: java Reporter: matthies <matthies>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description matthies 2008-04-03 21:52:09 UTC
The following private methods have a special meaning for Java object serialization (see the Java Object Serialization 
Specification):

    private void readObject(ObjectInputStream stream)
        throws IOException, ClassNotFoundException;

    private void readObjectNoData() throws ObjectStreamException;

    private Object readResolve() throws ObjectStreamException;

    private void writeObject(ObjectOutputStream stream)
        throws IOException;

    private Object writeReplace() throws ObjectStreamException;

Typically these are only invoked by the Java runtime and not from Java code within the class.
It would be nice if these weren't marked as unused by the editor.