RFR: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN [v2]

Sergey Bylokhov serb at openjdk.org
Thu Feb 23 17:07:02 UTC 2023


On Thu, 23 Feb 2023 11:34:05 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Sergey Bylokhov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update JMXStatusTest.java
>
> test/jdk/sun/management/jmxremote/startstop/JMXStatusTest.java line 36:
> 
>> 34: /**
>> 35:  * @test
>> 36:  * @bug 8023093 8138748 8142398 8303102
> 
> As this test doesn't explicitly test/check the issue in 8303102 I don't think it needs to belisted on the @bug line. (And if it does then the copyright year needs t be updated too).

I have found this issue by using this test on a host with long hostname, it does validate the output of the command and fails if it truncated.

-------------

PR: https://git.openjdk.org/jdk/pull/12724


More information about the serviceability-dev mailing list