RFE: java.util.logging.Level is not Comparable

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs



      Name: rmT116609 Date: 01/08/2003


      DESCRIPTION OF THE PROBLEM :
      There is every reason to believe that Level is Comparable, aside from it actually implementing Comparable.

      "The logging Level objects are ordered and are specified by ordered integers. Enabling logging at a given level also enables logging at all higher levels."

      "The levels in descending order are:"

      http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Level.html

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected: java.util.logging.Level to implement Comparable.
      Actually: It doesn't.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER WORKAROUND :
      Directly compare intValue() or create a ComparableLevel class.
      (Review ID: 179225)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: