Elasticsearch version: 2.3.4
JVM version: Not relevant
OS version: Not relevant
Description of the problem including expected versus actual behavior:
Array index out of bounds when trying to create a mapping from a java map. Looking at source of master, the probable cause is the loop variable being incremented inside the loop.
https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/action/admin/indices/mapping/put/PutMappingRequest.java#L189