JDK-4903358 : REGRESSION:java.awt.Container serial form changed by removal of field
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2003-08-08
  • Updated: 2003-08-11
  • Resolved: 2003-08-11
Related Reports
Duplicate :  
Relates :  
Relates :  
Description

Name: ygR10224			Date: 08/08/2003


Filed By      : SPB JCK team (###@###.###)
JDK           : java full version "1.5.0-beta-b13"
JCK           : 1.5
Platform[s]   : Solaris
switch/Mode   : 
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] : api/java_awt/Container/serial/index.html#Constructor


Problem description
===================
Field "private java.awt.Dimension maxSize" has been removed in JDK1.5.0-b13 
and serial form for java.awt.Container class has been changed. Java Object 
Serialization Specification declares field deleting as incompatible change:
http://java.sun.com/j2se/1.4.1/docs/guide/serialization/spec/version.doc7.html
"Incompatible changes to classes are those changes for which the guarantee of 
interoperability cannot be maintained. The incompatible changes that may occur 
while evolving a class are: 
 * Deleting fields - If a field is deleted in a class, the stream written will 
   not contain its value. When the stream is read by an earlier class, 
   the value of the field will be set to the default value because no value is 
   available in the stream. However, this default value may adversely impair 
   the ability of the earlier version to fulfill its contract."
So, this should be treated as JDK regression.
Besides, as it was decided on the Serialization Compatibility meeting 
01-Feb-2001, any incompatible change to serial form in terms of Java Object 
Serialization Specification (which was agreed to be valid), including the 
deletion of the serializable field, still require CCC submittal.

JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

Specific Machine Info:
=====================
SunOS helmet 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-2

======================================================================

Comments
EVALUATION Name: rpR10076 Date: 08/11/2003 This has been pointed out in bug report 4902607. Indeed, this poses a compatibility problem. ======================================================================
11-06-2004