JDK-4671694 : stddoclet: serializable superclass of non-public serializable class missing
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-04-19
  • Updated: 2014-05-05
  • Resolved: 2002-10-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
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
14-06-2004

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.
10-06-2004

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
30-04-2002