You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/10/04 19:19:00 UTC

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

    [ https://issues.apache.org/jira/browse/ARTEMIS-3963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612752#comment-17612752 ] 

ASF subversion and git services commented on ARTEMIS-3963:
----------------------------------------------------------

Commit b49bc5818336c9bc208aafcc340da7d48da262a8 in activemq-artemis's branch refs/heads/2.21.0.jbossorg-x from Domenico Francesco Bruscino
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=b49bc58183 ]

ARTEMIS-3963 Fix setting security roles via properties on OpenJ9 JDK 11

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` before
`public boolean java.util.HashSet.add` while OpenJ9 JDK 11 returns
`public boolean java.util.HashSet.add` before
`public void org.apache.activemq.artemis.core.config.impl.RoleSet.add`

(cherry picked from commit 45a1245cb0cf823495ef69df352e190dc94e10cd)

downstream: ENTMQBR-6980

> 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
>    Affects Versions: 2.24.0
>            Reporter: Domenico Francesco Bruscino
>            Assignee: Domenico Francesco Bruscino
>            Priority: Major
>             Fix For: 2.25.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)