JDK-5044540 : Generify non-core APIs (followup)
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-10
  • Updated: 2017-05-16
  • Resolved: 2004-05-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b51Fixed
Related Reports
Relates :  
Description
A few minor errors were made, and a couple of opportunities were missed, in the
big generification putback (4964490).  Specifically:

  - java.io.SequenceInputStream(java.util.Enumeration<java.io.InputStream>)
    should be changed to accept an Enumeration<? extends InputStream>.

  - Each java.nio.$Type$Buffer class should implement Comparable<$Type$> rather
    than the raw type Comparable.  This change was in the original proposal for
    4964490 but was accidentally removed from the final version.  This change
    is safe since the buffer classes cannot be subclassed by users.  It's
    binary compatible since the compiler will provide bridge methods which
    accept Objects.

  - The java.nio.Charset class should implement Comparable<Charset> rather than
    Comparable<Object>.  This change is safe since the compareTo method in this
    class has always been final, so it's impossible for a subclass to have
    overridden it.  It's binary compatible since the compiler will provide a
    bridge method which accepts an Object.

  - The javax.swing.SpinnerDateModel, javax.swing.SpinnerNumberModel,
    javax.swing.text.InternationalFormatter, and javax.swing.JSlider classes
    should not be generified at this time since more research is needed to find
    the best generifications of these classes.

-- ###@###.### 2004/5/11

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b51 tiger-beta2
14-06-2004

EVALUATION Yes. -- ###@###.### 2004/5/11
05-12-0177