JDK-4421121 : lack of serialVersionUID in org.omg.* classes causes JCK test failures
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba:idl
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-03-02
  • Updated: 2001-03-02
  • Resolved: 2001-03-02
Related Reports
Relates :  
Description
Bug 4415578 documents assorted JCK serialization test failures.  A large
number of these failures appear to be due to serialVersionUID mismatches
in org.omg.* classes, which cause deserialization to fail:

api/org_omg/CosNaming/NamingContextPackage/NotEmpty/serial/index.html#Input
api/org_omg/CosNaming/NamingContextPackage/InvalidName/serial/index.html#Input
api/org_omg/CosNaming/NamingContextPackage/NotFoundReason/serial/index.html#Inpu
+t
api/org_omg/CosNaming/NamingContextPackage/NotFound/serial/index.html#Input
api/org_omg/CosNaming/NamingContextPackage/AlreadyBound/serial/index.html#Input
api/org_omg/CosNaming/BindingType/serial/index.html#Input
api/org_omg/CosNaming/_BindingIteratorStub/serial/index.html#Input
api/org_omg/CosNaming/_NamingContextStub/serial/index.html#Input
api/org_omg/CORBA/ORBPackage/InvalidName/serial/index.html#Input
api/org_omg/CORBA/WrongTransaction/serial/index.html#Input
api/org_omg/CORBA/TypeCode/serial/index.html#Input
api/org_omg/CORBA/DefinitionKind/serial/index.html#Input
api/org_omg/CORBA/CompletionStatus/serial/index.html#Input
api/org_omg/CORBA/INV_POLICY/serial/index.html#Input
api/org_omg/CORBA/UserException/serial/index.html#Input
api/org_omg/CORBA/Any/serial/index.html#Input
api/org_omg/CORBA/PolicyError/serial/index.html#Input

I am unsure whether these failures represent an IDL/serialization bug,
or whether the tests themselves are in error (i.e., testing for too much
by requiring compatible serialVersionUIDs between JDK releases), so I am
filing this bug to track the issue (it doesn't make sense to recategorize
4415578 as it encompasses other unrelated JCK failures as well).

Comments
EVALUATION This bug is a duplicate of several other bugs opened by the JCK team. Here is an email explaining correspondence that occured during Feb 2001, among CORBA team and the JCK team. The serialVersionUID is non-standard according to the OMG specifications. Also, there was a corresponding CCC submitted by the CORBA team to exclude CORBA APIs from the serialization spec. The details are in this attached e-mail. anita.jindal@eng 2001-03-02 ----------------- Subject: Re: JCK bugs on CORBA To: "Andrey Y. Chernyshov" <###@###.###> Cc: Gauri Sharma <###@###.###>, ###@###.###, ###@###.###, ###@###.### MIME-Version: 1.0 Andrey, > So these bugs can be > closed. Please let me know if we should do it by ourselves. > Please go ahead and close these bugs. Thanks. =Gauri. > > Gauri, > > All of these bugs are serialization related. As of approved CCC 4394004, > serial tests for org.omg classes should be removed from JCK, we have filed > the correspondent bug against the tests (#4416712). So these bugs can be > closed. Please let me know if we should do it by ourselves. > > Thanks, > Andrey. > > On Wed, 21 Feb 2001, Gauri Sharma wrote: > > > > > Folks, > > > > Can you please let me know if all the bugs listed below > > will be closed by your team? > > > > If any of these are still open issues, please let me > > know asap. > > > > > > Thanks. > > > > > > > > =Gauri. > > > > ------------- Begin Forwarded Message ------------- > > > > Date: Wed, 21 Feb 2001 14:28:03 -0800 (PST) > > From: Anita Jindal <###@###.###> > > Subject: Re: JCK bugs on CORBA > > To: ###@###.###, ###@###.### > > Cc: ###@###.###, ###@###.###, ###@###.### > > MIME-Version: 1.0 > > Content-MD5: q37iiRT2QHQ7nrcxDMM1YA== > > > > Hi Gauri and David, > > > > I am listing the bugs that were opened on CORBA related to serialization > > spec issues. > > > > The following JCK bugs opened on CORBA need to be revisited. Some of them > > may need to be excluded or changed. Please refer to the following two approved > > CCCs (4284015, 4394004) for more information. > > > > We did resolve an outstanding issue from Bob Scheifler on 4394004 (since that > > was one of Gauri's concern). > > > > Since most the following bugs are covered by the above 2 CCCs, I'd appreciate > > your appropriate action on these. > > > > 4415004 02/13/2001 JCK13a 10 api/org_omg/CosNaming tests failed under sparc 7, > > inte 6, linux, win95 > > 4404697 01/15/2001 org.omg.CORBA.Any requires serialVersionUID > > 4375082 09/29/2000 API change in org.omg.CORBA.WrongTransaction causes > > compatibilty problem > > 4375084 09/29/2000 API change in org.omg.CosNaming package causes compatibilty > > problem > > 4375086 09/29/2000 Unapproved API change in org.omg.CosNaming.BindingType class > > 4375104 09/29/2000 Unapproved API change in > > org.omg.CosNaming.NamingContextPackage.NotFoundReason > > 4375118 09/29/2000 Serialization of org.omg.CosNaming._BindingIteratorStub fails > > > > - Thanks > > Anita > > > > > > ------------- End Forwarded Message ------------- > > > > > >
11-06-2004