[
https://issues.apache.org/jira/browse/ARTEMIS-3963?focusedWorklogId=804935&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-804935
]
ASF GitHub Bot logged work on ARTEMIS-3963:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 30/Aug/22 16:06
Start Date: 30/Aug/22 16:06
Worklog Time Spent: 10m
Work Description: clebertsuconic merged PR #4195:
URL: https://github.com/apache/activemq-artemis/pull/4195
Issue Time Tracking
-------------------
Worklog Id: (was: 804935)
Time Spent: 20m (was: 10m)
> 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
> Priority: Major
> 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)