simplexml
simplexml copied to clipboard
Component type used instead of array type if both bound with RegistryStrategy
Hi! My issue is that if I use RegistryStrategy and bind both component (A) and corresponding array (A[]) types to its relative converters, then only component AConverter is used against both A and A[] which leads to obvious crash.
Registry reg = new Registry()
.bind(A.class, AConverter.class)
.bind(A[].class, AArrayConverter.class)
return new Persister(new RegistryStrategy(reg));