Tests in java/lang/management/ManagementFactory fail with
java.lang.NoClassDefFoundError: com/sun/management/internal/GarbageCollectorExtImpl
when run with "-javaoptions:-limitmods java.management"
java.lang.NoClassDefFoundError: com/sun/management/internal/GarbageCollectorExtImpl
at sun.management.MemoryImpl.getMemoryManagers0(java.management@9-internal/Native Method)
at sun.management.MemoryImpl.getMemoryManagers(java.management@9-internal/MemoryImpl.java:98)
at sun.management.ManagementFactoryHelper.getGarbageCollectorMXBeans(java.management@9-internal/ManagementFactoryHelper.java:137)
at java.lang.management.DefaultPlatformMBeanProvider$4.nameToMBeanMap(java.management@9-internal/DefaultPlatformMBeanProvider.java:185)
at sun.management.spi.PlatformMBeanProvider$PlatformComponent.getMBeans(java.management@9-internal/PlatformMBeanProvider.java:195)
at java.lang.management.ManagementFactory.lambda$getPlatformMXBeans$3(java.management@9-internal/ManagementFactory.java:683)
at java.util.stream.ReferencePipeline$7$1.accept(java.base@9-internal/ReferencePipeline.java:269)
at java.util.HashMap$ValueSpliterator.forEachRemaining(java.base@9-internal/HashMap.java:1672)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-internal/AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-internal/AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-internal/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-internal/AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(java.base@9-internal/ReferencePipeline.java:511)
at java.lang.management.ManagementFactory.getPlatformMXBeans(java.management@9-internal/ManagementFactory.java:684)
at GetPlatformManagementInterfaces.main(GetPlatformManagementInterfaces.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
at java.lang.Thread.run(java.base@9-internal/Thread.java:804)