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

Update nsk.share.Log to don't print summary during VM shutdown hook

XMLWordPrintable

    • b24

        The nsk.share.Log doing some cleanup and reporting errors in the cleanup method. This method is supposed to be executed by finalizer originally. However, now it is called only during shutdown hook. The cleanup using Cleaner doesn't work (see JDK-8330760).

        This cleanup is not necessary and printing summary usually is just disabled. It is enabled if the test called 'complain' method. However, the error should have been printed already in this method.

        Note: The 'verboseOnErrorEnabled' is just not used.

        See isVerboseOnErrorEnabled.
            public boolean isVerboseOnErrorEnabled() {
        - return errorsSummaryEnabled;
        - }

              lmesnik Leonid Mesnik
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: