title: Spring AOP gives IllegalArgumentException with Java 8
body: <p>With Java 8 and Spring AOP 4.0.6 I am getting following error</p>
  
  <pre><code>    java.lang.RuntimeException: Error scanning file MonitorAroundPerformance.class
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:705)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:821)
      at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
      at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:531)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: 
  java.lang.IllegalArgumentException
      at org.objectweb.asm.ClassReader.&lt;init&gt;(Unknown Source)
      at org.objectweb.asm.ClassReader.&lt;init&gt;(Unknown Source)
      at org.objectweb.asm.ClassReader.&lt;init&gt;(Unknown Source)
      at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:970)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:700)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:686)
      at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:821)
      at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
      at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:531)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>However when I change Java Source and target to 1.7 , then this error goes away.
  POM.xml settings - </p>
  
  <pre><code>&lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-framework-bom&lt;/artifactId&gt;
              &lt;version&gt;4.0.6.RELEASE&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  </code></pre>
  
  <p>Jars in build path in Eclipse Kepler - spring-aop-4.0.6 , aspectjrt-1.8.2.jar, aopalliance-1.0.jar, jetty-maven-plugin:9.1.1.v20140108</p>
  
  <p>Config: </p>
  
  <pre><code>&lt;bean id="performanceAdvice"
      class="com.util.MonitorAroundPerformance" /&gt;
  
  &lt;bean id="performanceAdvisor"
      class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"
      depends-on="propertyOverrideConfigurer"&gt;
      &lt;property name="advice" ref="performanceAdvice" /&gt;
  &lt;/bean&gt;
  
  
  &lt;bean
      class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"&gt;
      &lt;property name="proxyTargetClass" value="true" /&gt;
  &lt;/bean&gt;
  </code></pre>