simplexml icon indicating copy to clipboard operation
simplexml copied to clipboard

Component type used instead of array type if both bound with RegistryStrategy

Open vganin opened this issue 9 years ago • 0 comments

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));

vganin avatar Apr 05 '16 19:04 vganin