Project: springxd
Issue XD-1792: Array class names cannot be parsed to MimeType
MessageBusSupport creates an 'original content type' message header to support serialization for remote transports. The form of the header application/x-java-object;type=. For java array types, the "[" prefix causes an error when converting this value to a MimeType. This can be avoided by quoting the classname. However, a further complication is if the array element is an object. In this case the classname is '[L;'. The trailing colon causes a parse exception even in a quoted string. A simple fix is to check for the trailing colon, remove it and add it back if MimeType.getParameter("type").contains("[L"). See http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#getName for more info. Preliminary testing indicates primitive array and multi-dimensional arrays will work fine with quoting, but tests should be added for these cases.
Story points: 1