harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: [jira] Created: (HARMONY-233) private serialVersionID field should be set in javax.security.auth.kerberos.KerberosKey class
Date Wed, 22 Mar 2006 13:23:04 GMT
Right, it is 1.4 spec bug. I've serialized the same objects on 1.4 and
1.5implementations and compared byte arrays - they are equal.

Thanks,
Stepan.


On 3/22/06, Mikhail Loenko wrote:
>
> As far as it is documented, it is a feature rather than a bug :)
>
> The change in the spec is incompatible, but new variant is more logical.
> So, 1.4 spec bug seems to be fixed.
>
> Thanks,
> Mikhail
>
>
> 2006/3/22, Samoilenko, Svetlana V <svetlana.v.samoilenko@intel.com>:
> > I don't think that it is bug in specs.
> > The spec 1.5 for SecretKey interface reads:
> > "Field: serialVersionUID
> > The class fingerprint that is set to indicate serialization
> > compatibility since J2SE 1.4."
> > Mikhail, what is your opinion?
> >
> > Regards,
> > Svetlana
> >
> > -----Original Message-----
> > From: Geir Magnusson Jr [mailto:geir@pobox.com]
> > Sent: Wednesday, March 22, 2006 6:18 PM
> > To: harmony-dev@incubator.apache.org
> > Subject: Re: [jira] Created: (HARMONY-233) private serialVersionID field
> > should be set in javax.security.auth.kerberos.KerberosKey class
> >
> > This sounds like a bug in the *spec*, because it means that
> > theoretically, there is 1.4 code that won't compile under 1.5 due to
> > reasons other than collision w/ language changes and 1.4 binary wouldn't
> >
> > run.
> >
> > Right?
> >
> > geir
> >
> >
> > Svetlana Samoilenko (JIRA) wrote:
> > > private serialVersionID field should be set in
> > javax.security.auth.kerberos.KerberosKey class
> > >
> > ------------------------------------------------------------------------
> > ---------------------
> > >
> > >          Key: HARMONY-233
> > >          URL: http://issues.apache.org/jira/browse/HARMONY-233
> > >      Project: Harmony
> > >         Type: Bug
> > >   Components: Classlib
> > >     Reporter: Svetlana Samoilenko
> > >
> > >
> > > According to J2SE 1.4  specifications
> > javax.security.auth.kerberos.KerberosKey class has
> > > public serialVersionUID field (it implements SecretKey interface that
> > inherited this field from java.security.Key interface where the field is
> > public).
> > > But according J2SE 1.5 specification this field in Key interface is
> > not public, so class KerberosKey should have private serialVersionID
> > field.
> > >
> > > The same problem is for javax.cripto.spec.SecretKeySpec class.
> > >
> >
>



--
Thanks,
Stepan Mishura
Intel Middleware Products Division

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message