polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Merlin <paulmer...@apache.org>
Subject Re: [jira] [Resolved] (POLYGENE-157) Remove support for legacy Map serialization format.
Date Mon, 03 Apr 2017 09:54:31 GMT
Niclas Hedhman a écrit :
> I am just a bit worried about looping the maps.

Right, keys are looped once with a predicate, and then entries are
looped once for actual serialization.

We can't get a handle on the ParameterizedType there due to type erasure
because we don't have an enclosing class. What we could do is look at
the first entry in the map instead of looking at all of them. But this
would break some use cases with mixed keys that actually work.

View raw message