Splitting a JSON Array into POJOs stopped working in 2.16
<p>I'm updating an old application that uses Apache Camel. The old code unmarshaled the input file containing a JSON array into an array of POJOs (Event), then split them to process each element in the array, like so:</p>

<pre><code>GsonDataFormat eventFormat = new GsonDataFormat(new GsonBuilder().create(), Event[].class);
from("file:...")
.unmarshal(eventFormat);
.split(body(Event[].class))
...
</code></pre>

<p>This works fine up to version 2.15 of Apache Camel, but in v2.16 the code fails with a ClassNotFoundException for Event[] when I send a file through.</p>

<p>I can't find any documentation that explains why the change and how to correct it. Help?</p>