JDK-6581204 : Reconsider Comparable generification in java.io.ObjectStreamField
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 7
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2007-07-16
  • Updated: 2011-02-14
Related Reports
Relates :  
Relates :  
Description
As part of the non-core API generification in Tiger (4964490), the class java.io.ObjectStreamField as generified as Comparable<Object> rather than Comparable<ObjectStreamField>.  However, the class actually is only comparable against itself so it should be Comparable<ObjectStreamField>.  Making this change now would be binary compatable since there is no bridge method generated for Comparable<Object>.  However, there would be a source incompatability, but that is essentially the same source incompatabilty of catching runtime exceptions at compile time that generics is intended to introduce.