RFR: 8327246: Add a jcmd diagnostic command to list the jar files loaded by a process

Larry Cable duke at openjdk.org
Mon Jan 5 23:25:55 UTC 2026


On Mon, 5 Jan 2026 21:09:17 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> I wonder if verbose parameter should cause to print class files location. Was this option considered, and if so then why has it been rejected?

I typically avoid modifying the behavior (and hence o/p) of existing commands; in my view a particular command (and options etc) and the resulting o/p format are part of the API "contract", hence simply modifying the -verbose option to
emit this additional field, would break the existing "contract", which in the case of a programmatic parser client would 
most likely cause failures.

IMO adding a new option preserves the existing contract while providing the additional metadata for new consumers
aware of its availability and desirous of its content.

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

PR Comment: https://git.openjdk.org/jdk/pull/29048#issuecomment-3712445113


More information about the hotspot-dev mailing list