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

Wrong condition for checking absence of logger in MethodHandleFactory

XMLWordPrintable

    • b71
    • generic
    • generic

        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)) {

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

                Created:
                Updated:
                Resolved: