I’m aware that this method was unsafe in ActiveMQ Classic from a security perspective. However, using Artemis v2.32.0 with ActiveMQ Classic v5.16.0 client results in an ClassCastException when trying to Map<String, String> map = genericCast(message.getObjectProperty(key))
It cannot cast String
to a Map
.
The existing client code works completely fine when interacting with a Classic broker.
I’m not sure if this is expected behavior but I could not find it explicitly documented. If not expected behavior, I can look further to see if I can write a test case for it.