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

TestOptionsWithRanges test only ever uses the default collector

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • b109

      The test in runtime/CommandLine/OptionsValidation/TestOptionsWithRanges checks ranges of command line options. It ever only does so with the default collector, ignoring any collectors set on the command line.

      This is problematic, because this means that functionality that is only implemented for collectors other than the default collector is never even tested. Bugs like JDK-8144573 that are only found by accident with the current scheme, and show that this leads to a highly reduced test coverage.

            ddmitriev Dmitry Dmitriev
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: