Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.0.1
-
None
-
None
Description
@Test public void testMap() { final Map<String,String[]> request = new HashMap<String,String[]>(); request.put("fq", new String[] {"${one_ref}","two"}); request.put("one_ref",new String[] {"one"}); Map expanded = MacroExpander.expand(request); assertEquals("one", ((String[])expanded.get("fq"))[0]); assertEquals("two", ((String[]) expanded.get("fq"))[1]); }
fails with `java.lang.ArrayIndexOutOfBoundsException` because the resultant `expanded` structure only has a single "fq" value of "one". "two" got eaten.