OkaeriPoland / okaeri-configs

Simple Java/POJO config library written with love and Lombok
MIT License
77 stars 11 forks source link

Deserialization of Map<MyEnum, List<MyOkaeriConfig>> results in Map<MyEnum, List<LinkedHashMap>> #27

Closed dasavick closed 2 years ago

dasavick commented 2 years ago

Whoopsie.

dasavick commented 2 years ago

Apparently this happens only with @TargetType(TreeMap/LinkedHashMap) or even @TargetType(Map) annotation. Direct type TreeMap<MyEnum, List<MyOkaeriConfig>> is not affected.

dasavick commented 2 years ago

Looks like TargetType was incorrectly applied to all types transformed in the context of the annotated field instead of parent field only. Fixed in https://github.com/OkaeriPoland/okaeri-configs/commit/f69d94f434dab060366a8fab144728530845c4ec and released in 4.0.0-beta19.