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

System.LoggerFinder#getLogger or getLocalizedLogger does not throw NPE

    Details

      Backports

        Description

        Analyzing this bug JCK-7308180, I encountered a tck-red-9 issue.

        Tests failing in System.LoggerFinder ( getLocalizedLogger and getLogger) both methods state in the spec that an NPE will be thrown when “name” or “module” parameter is null.

        However , when the module is limited to “java.base” and the java.logging is not present, the default implementation does not check for null-ability of “name” parameter.
        Hence NPE is not thrown. (default Implementation)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dfuchs Daniel Fuchs
                  Reporter:
                  bnallakaluva Bharath Nallakaluva (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: