JDK-8155993 : Some tests in java/lang/management fail with NCDFE: com/sun/management/internal/GarbageCollectorExtImpl
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-05-03
  • Updated: 2016-05-11
  • Resolved: 2016-05-11
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Some tests in java/lang/management fail with NCDFE: com/sun/management/internal/GarbageCollectorExtImpl when executed with the declared module dependences.
Such as for java/lang/management/BufferPoolMXBean/Basic.java:
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 java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(java.management@9-internal/ManagementFactory.java:478)
	at java.util.stream.ReferencePipeline$7$1.accept(java.base@9-internal/ReferencePipeline.java:269)
	at java.util.stream.ReferencePipeline$2$1.accept(java.base@9-internal/ReferencePipeline.java:177)
	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:484)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-internal/AbstractPipeline.java:474)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(java.base@9-internal/ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(java.base@9-internal/ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(java.base@9-internal/AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(java.base@9-internal/ReferencePipeline.java:430)
	at java.lang.management.ManagementFactory.getPlatformMBeanServer(java.management@9-internal/ManagementFactory.java:479)
	at Basic.main(Basic.java:100)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.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)



Comments
Same for java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java
03-05-2016