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

Using env of JAVA_TOOL_OPTIONS and _JAVA_OPTIONS breaks QuietOption.java test

    XMLWordPrintable

Details

    Backports

      Description

        The test QuietOptions.java fails if the environment variables JAVA_TOOL_OPTIONS and _JAVA_OPTIONS are set. And, the options need to be set when using the tests to obtain code coverage data.

        This is because the runtime generates warning messages that these settings are being used. There is no way to suppress the warnings.

        The test fails because it checks that no output is generated when the javadoc -quiet option is used.

        The most reasonable fix is to detect and ignore these lines if the output is not empty.

        Attachments

          Issue Links

            Activity

              People

                jjg Jonathan Gibbons
                jjg Jonathan Gibbons
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: