From c4d914ea4964d13255a5094c2bc197d1dcbe8cc1 Mon Sep 17 00:00:00 2001 From: Larry Cable Date: Mon, 12 Jan 2026 10:34:29 -0800 Subject: [PATCH] JDK-8327246: added test for VM.classes -location as per lmesnik --- test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java b/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java index e2b0b4ba9f6..098dd3a3979 100644 --- a/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java +++ b/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java @@ -59,5 +59,9 @@ public class PrintClasses { // Test for previous bug in misc flags printing output.shouldNotContain("##name"); + + pb.command(new PidJcmdExecutor().getCommandLine("VM.classes", "-location")); + output = new OutputAnalyzer(pb.start()); + output.stdoutContains(".*(file:/|jar:).*"); } }