RFR: 8355441: Remove antipattern from PassFailJFrame.forcePass javadoc
Manukumar V S
mvs at openjdk.org
Wed Apr 23 23:54:57 UTC 2025
The javadoc for PassFailJFrame.forcePass suggests an anti-pattern of forcibly passing the test if a resource is unavailable.
If a resource is unavailable or a feature isn't supported, the test should throw jtreg.SkippedException.
PassFailJFrame.forcePass should be used in semi-automatic tests when the test determines that all the conditions for passing the test are met.
Please refer: JDK-8355366 and https://github.com/openjdk/jdk/pull/24820
Testing
This is a javadoc change, so not testing required.
-------------
Commit messages:
- 8355441: Remove antipattern from PassFailJFrame.forcePass javadoc
Changes: https://git.openjdk.org/jdk/pull/24837/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24837&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8355441
Stats: 12 lines in 1 file changed: 6 ins; 0 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/24837.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24837/head:pull/24837
PR: https://git.openjdk.org/jdk/pull/24837
More information about the client-libs-dev
mailing list