Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6581204

Reconsider Comparable generification in java.io.ObjectStreamField

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • None

      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.

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: