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 - Don't mark private serialization methods as unused
Summary: Don't mark private serialization methods as unused
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 21:52 UTC by matthies
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.