[
https://issues.apache.org/jira/browse/CASSANDRA-19378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065433#comment-18065433
]
Yuqi Yan commented on CASSANDRA-19378:
--------------------------------------
PR: [https://github.com/apache/cassandra/pull/3242]
> JMXStandardsTest fails when running with codecoverage
> -----------------------------------------------------
>
> Key: CASSANDRA-19378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19378
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Test/unit
> Reporter: Yuqi Yan
> Assignee: Yuqi Yan
> Priority: Normal
> Fix For: 5.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> JMXStandardsTest is added in unit test since 4.1. I recently run this test
> with codecoverage and it fails:
> {code:java}
> ant codecoverage -Dtaskname=testsome
> -Dtest.name=org.apache.cassandra.tools.JMXStandardsTest {code}
> {code:java}
> [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)
> {code}
> This `$jacocoInit` method was included in the test, which should be excluded
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]