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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: