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

Wrong condition for checking absence of logger in MethodHandleFactory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b71
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: