United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4671694 : stddoclet: serializable superclass of non-public serializable class missing

Details
Type:
Bug
Submit Date:
2002-04-19
Status:
Resolved
Updated Date:
2014-05-05
Project Name:
JDK
Resolved Date:
2002-10-25
Component:
tools
OS:
generic
Sub-Component:
javadoc(tool)
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports

Sub Tasks

Description
If a non-public class is forced into the serialized form page using @serial, and the class has a serializable superclass, the superclass is a vital part of the specification of the non-public class, but there is no indication anywhere in the output as to what the superclass must be. As an example, look at the output produced for java.net.SocketPermissionCollection; it should be specified that this has java.security.PermissionCollection as its superclass, but there is no such indication.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b05


                                     
2004-06-14
PUBLIC COMMENTS

If a non-public class is forced into the serialized form page using @serial, and the class has a serializable superclass, the superclass is a vital part of the specification of the non-public class, but there is no indication anywhere in the output as to what the superclass must be. As an example, look at the output produced for java.net.SocketPermissionCollection; it should be specified that this has java.security.PermissionCollection as its superclass, but there is no such indication.
                                     
2004-06-10
EVALUATION

Are you suggesting that the java.net.SocketPermissionCollection class
simply have a link to its superclass, or that the superclass actually
appear in the serialized form page?

java.security.PermissionCollection (public, serializable)
  |
  +-java.net.SocketPermissionCollection (package-private, serializable)


Declarations and @serial tags are:

/**
 * (no @serial tag)
 */
public abstract class PermissionCollection extends Object implements Serializable

/**
 * @serial include 
 */
final class SocketPermissionCollection extends PermissionCollection implements Serializable

###@###.### 2002-04-26

Bob's suggestion to add the "extends" clause is the way to go.
###@###.### 2002-04-30

I have fixed this bug. The bug fix is pending review.
###@###.### 2002-07-08

I have putback this fix.
###@###.### 2002-09-30
                                     
2002-04-30



Hardware and Software, Engineered to Work Together