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

duplication of isLoggable test in Filehandler and StreamHandler can fire bugs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 7u25
    • core-libs

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      in fact this is not linked to any OS

      A DESCRIPTION OF THE PROBLEM :
      the " publish " method of FileHandler calls isLoggable(record) then calls super.publish(record) that also calls isLoggable(record)
      now I have a subclass of FileHandler that overrides isLoggable(record) and yields false if any LogRecord has already been tested
      so no record gets published!!!!
      the double call to isLoggable should be eliminated


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      explained in the bug description

            dfuchs Daniel Fuchs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: