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 9050 - SerialVersion does not recognize classes that are Serializable due to inheritance
Summary: SerialVersion does not recognize classes that are Serializable due to inherit...
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: serialversion (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-09 20:26 UTC by Scott Stark
Modified: 2003-12-11 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Stark 2001-01-09 20:26:29 UTC
SerialVersion does not recognize classes that are Serializable due to
a parent class being Serializable. When I run the tool on such a class
it displays:

No need to compile.
Scanning com/dscape/server/projects/msgs/RenameMsg.java
Scanning finished
No interesting classes were encountered.

com.dscape.server.projects.msgs.RenameMsg inherits from a class
that implements Serializable.

bash-2.04$ javap com.dscape.server.projects.msgs.RenameMsg
Compiled from RenameMsg.java
public class com.dscape.server.projects.msgs.RenameMsg extends com.dscape.server
.projects.msgs.ProjectMsg {
    com.dscape.server.projects.interfaces.DirContextInfo info;
    javax.naming.Name toName;
    public com.dscape.server.projects.msgs.RenameMsg();
    public com.dscape.server.projects.msgs.RenameMsg(javax.naming.Name,javax.nam
ing.Name,java.security.Principal,com.dscape.server.projects.interfaces.DirContex
tInfo);
    public com.dscape.server.projects.interfaces.DirContextInfo getContextInfo()
;
    public javax.naming.Name getFromName();
    public javax.naming.Name getToName();
}
bash-2.04$ com.dscape.server.projects.msgs.ProjectMsg
Compiled from ProjectMsg.java
public class com.dscape.server.projects.msgs.ProjectMsg extends java.lang.Object
 implements java.io.Serializable {
    public com.dscape.server.projects.msgs.ProjectMsg();
    public com.dscape.server.projects.msgs.ProjectMsg(javax.naming.Name,java.sec
urity.Principal);
    public javax.naming.Name getName();
    public java.security.Principal getUserID();
}
bash-2.04$
Comment 1 Jesse Glick 2001-01-16 15:15:59 UTC
Are you using the serialversion offered under autoupdate for 3.1? If so, have
you tried the development version (easy to compile from source) which has been
partially rewritten and may behave differently?
Comment 2 Jaroslav Tulach 2003-01-31 16:20:51 UTC
I have just found this issue. I'll try to do something with it.
Comment 3 Jaroslav Tulach 2003-04-18 14:17:21 UTC
Now the compilation is a necessary step for evaluation of SUID and
that is why checking for inheritance is guaranteed. Reopen if you
disagree.