mklemm/jaxb-rich-contract-plugin

Specify how -overrideCollectionClass is created

Opened this issue · 1 comments

The -overrideCollectionClass argument for the -Ximmutable plugin assumes that the chosen class can be constructed directly using new OverrideCollectionClassName(args), but this is not the case for Guava's ImmutableList, which must be built using a builder or a static method, such as copyOf(Iterable).

There should be some way of specifying how the collection class should be created.

Maybe it is possible to pass the whole collection construction expression as a command-line parameter