Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.24.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
- causes
-
ARTEMIS-3998 Error setting broker properties for connectionRouters
- Closed
- links to