Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3963

Error setting security roles via properties on OpenJ9 JDK 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.24.0
    • 2.25.0
    • None
    • None

    Description

      The ConfigurationImplTest.testRoleSettingsViaProperties test fails on OpenJ9 JDK 11:

      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)
      

      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)`

      Attachments

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              brusdev Domenico Francesco Bruscino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m