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

JFR: Improve robustness of the SettingControl examples

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • None
    • hotspot
    • None
    • jfr
    • master

      Users can write their own settings, for example, a setting that performs probabilistic sampling. The SettingControl class contains example snippets that show how to write user-defined settings, but they are not as robust as they should be. For example, what should happen when an invalid value is passed to the SettingControl? The specification states that a SettingControl should not throw an exception, and if an incorrect value is used, the existing value should be kept.

      The examples should follow the specification and also demonstrate how a default value is returned if all combined values are invalid.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: