I've encountered several issues with JSON serialization yesterday:
- int and long are decoded as Integer when using JSONObject.get(key) method
=> ClassCastException when the code is expecting a long and receives a integer
- String[] parameters are deserialized as Object[]
=> All the createConnectionFactory() methods don't work: the ManagementService will
not find the matching method since Object[] and String[] are different types (and not
assignable).
I've hacked 1 createConnectionFactory method to pass the parameters as Object[] to run
the JORAM tests but all the others methods won't work.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228855#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...