Details
-
Bug
-
Status: Triage Needed
-
Normal
-
Resolution: Unresolved
-
None
-
None
Description
JMXStandardsTest is added in unit test since 4.1. I recently run this test with codecoverage and it fails:
ant codecoverage -Dtaskname=testsome -Dtest.name=org.apache.cassandra.tools.JMXStandardsTest
[junit-timeout] ------------- ---------------- --------------- [junit-timeout] Testcase: interfaces(org.apache.cassandra.tools.JMXStandardsTest): FAILED [junit-timeout] Errors detected while validating MBeans [junit-timeout] Error at signature parameter; type java.lang.invoke.MethodHandles.Lookup is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] Error at signature parameter; type java.lang.Class is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] junit.framework.AssertionFailedError: Errors detected while validating MBeans [junit-timeout] Error at signature parameter; type java.lang.invoke.MethodHandles.Lookup is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] Error at signature parameter; type java.lang.Class is not in the supported set of types, method method 'private static boolean[] org.apache.cassandra.service.StorageServiceMBean.$jacocoInit(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.Class)' [junit-timeout] at org.apache.cassandra.tools.JMXStandardsTest.interfaces(JMXStandardsTest.java:156) [junit-timeout] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit-timeout] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [junit-timeout] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
This `$jacocoInit` method was included in the test, which should be excluded
Attachments
Issue Links
- links to