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

Wrong condition for checking absence of logger in MethodHandleFactory

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 9
    • 9
    • core-libs
    • b71
    • generic
    • generic

    Backports

      Description

        This really says it all: the comment is correct, the actual code isn't:

                //if there is no logger, or if it's set to log only coarser events
                //than the trace level, skip and return
        - if (logger != null && logger.levelCoarserThan(level)) {
        + if (logger == null || logger.levelCoarserThan(level)) {

        Attachments

          Issue Links

            Activity

              People

                attila Attila Szegedi
                attila Attila Szegedi
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: