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 GitHub Bot (Jira)" <ji...@apache.org> on 2022/08/30 08:47:00 UTC

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

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

ASF GitHub Bot logged work on ARTEMIS-3963:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Aug/22 08:46
            Start Date: 30/Aug/22 08:46
    Worklog Time Spent: 10m 
      Work Description: brusdev opened a new pull request, #4195:
URL: https://github.com/apache/activemq-artemis/pull/4195

   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`




Issue Time Tracking
-------------------

            Worklog Id:     (was: 804720)
    Remaining Estimate: 0h
            Time Spent: 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: 10m
>  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)