[Bug 263881] java/openjdk17-jre Exception: Thread CPU time measurement is not supported

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 10 May 2022 12:14:20 UTC

--- Comment #2 from indgy <me@indgy.uk> ---
@genesys also provided minimal code too reproduce, this works in v16 but fails
under v17

echo "
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadMXBean;
ThreadMXBean tb = ManagementFactory.getThreadMXBean();
System.out.println(tb.getThreadCpuTime(Thread.currentThread().getId())); " |
JAVA_VERSION=17 jshell -

You are receiving this mail because:
You are the assignee for the bug.