Description
While working on SOLR-12625 I tried to use a map initialization construct like this that works programmatically but fails precommit. Robert pointed out that we're using ECJ 4.4.1 compiler and suggested trying 4.6.1, which does the trick. I wanted to put the upgrade as a separate Jira for traceability so here it is.
static final Map<TEST_TYPE, String> solrClassMap = Collections.unmodifiableMap(Stream.of(
new SimpleEntry<>(TEST_TYPE.TINT, "solr.TrieIntField"),
new SimpleEntry<>(TEST_TYPE.BOOL, "solr.BoolField"))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)));