Domenico Francesco Bruscino created ARTEMIS-3963:
----------------------------------------------------
Summary: Error setting security roles via properties on OpenJ9 JDK
11
Key: ARTEMIS-3963
URL: https://issues.apache.org/jira/browse/ARTEMIS-3963
Project: ActiveMQ Artemis
Issue Type: Bug
Reporter: Domenico Francesco Bruscino
Assignee: Domenico Francesco Bruscino
The ConfigurationImplTest.testRoleSettingsViaProperties test fails on OpenJ9
JDK 11:
{code:java}
java.lang.ClassCastException: java.lang.Object incompatible with
org.apache.activemq.artemis.core.security.Role
at
org.apache.activemq.artemis.core.config.impl.ConfigurationImplTest.testRoleSettingsViaProperties(ConfigurationImplTest.java:927)
{code}
I see RoleSet.class.getMethods() returns the same methods on both OpenJDK 11
and OpenJ9 JDK 11 but the order is different
OpenJDK 11 returns `public void
org.apache.activemq.artemis.core.config.impl.RoleSet.add(java.lang.String,org.apache.activemq.artemis.core.security.Role)`
before `public boolean java.util.HashSet.add(java.lang.Object) `
while OpenJ9 JDK 11 returns `public boolean
java.util.HashSet.add(java.lang.Object)` before `public void
org.apache.activemq.artemis.core.config.impl.RoleSet.add(java.lang.String,org.apache.activemq.artemis.core.security.Role)`
--
This message was sent by Atlassian Jira
(v8.20.10#820010)