You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Domenico Francesco Bruscino (Jira)" <ji...@apache.org> on 2022/08/30 08:40:00 UTC

[jira] [Created] (ARTEMIS-3963) Error setting security roles via properties on OpenJ9 JDK 11

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)