Reconsider Comparable generification in java.io.ObjectStreamField

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: 7
    • Component/s: 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.

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

              Created:
              Updated:
              Imported:
              Indexed: