title: Jersey filter starting exception while using forEach
body: <p><strong>Method definition:</strong></p>
  
  <pre><code>@POST
  @Path("/run")
  @Produces({ MediaType.APPLICATION_JSON })
  @Consumes({ MediaType.APPLICATION_JSON })
  public String runSomething(CustomInputModel customInputModel) {
      // With simple loop
      for (String machine : customInputModel.getListOfString()) {
         .....
      }
  
      // With forEach
      customInputModel.getListOfString().forEach((stringObj) -&gt; {
         .....    
      });
  
  }
  </code></pre>
  
  <p><strong>CustomInputModel class Definition:</strong></p>
  
  <pre><code>public class CustomInputModel(){
  
  private List&lt;String&gt; listOfString; 
  
  public List&lt;String&gt; getListOfString() {
      return listOfString;
  }
  
  public void setListOfString(List&lt;String&gt; listOfString) {
      this.listOfString = listOfString;
  }
  
  }
  </code></pre>
  
  <p><strong>Problem:</strong></p>
  
  <p>In the runSomething method -> If the simple loop is used, everything works fine. However if I use forEach then I get the error below. Any help is appreciated. Apologies if I have missed something obvious.</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>SEVERE: Exception starting filter jersey
  java.lang.ArrayIndexOutOfBoundsException: 25460
  at org.objectweb.asm.ClassReader.readClass(Unknown Source)
  at org.objectweb.asm.ClassReader.accept(Unknown Source)
  at org.objectweb.asm.ClassReader.accept(Unknown Source)
  at com.sun.jersey.spi.scanning.AnnotationScannerListener.onProcess(AnnotationScannerListener.java:133)
  at com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner$1.f(FileSchemeScanner.java:86)
  </code></pre>