RFR: JDK-8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args
Matthias Baesken
mbaesken at openjdk.org
Mon Jan 2 14:38:32 UTC 2023
The test serviceability/sa/sadebugd/SADebugDTest.java can pass under some circumstances a negative rmiport (--rmiport -1) to SALauncher.java.
This leads to a somewhat misleading message
`[debugd] Argument is expected for 'rmiport' `
(we set an argument [-1] but probably this is not what is really expected) and additionally the real exception is not shown.
Probably also a warning in case of negative rmiport values should be printed because they seem to lead to errors.
-------------
Commit messages:
- JDK-8299470
Changes: https://git.openjdk.org/jdk/pull/11811/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11811&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8299470
Stats: 6 lines in 1 file changed: 5 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/11811.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11811/head:pull/11811
PR: https://git.openjdk.org/jdk/pull/11811
More information about the serviceability-dev
mailing list