ArrayIndexOutOfBoundsException using target=JAVA8

66 views
Skip to first unread message

Andreas Joseph Krogh

unread,
Jun 27, 2015, 8:45:02 AM6/27/15
to liftweb
Hi all.
 
Just a heads-up for those using java8-bytecode with lambdas
 
I've compiled my project with:
<arg>-Ydelambdafy:method</arg>
<arg>-Ybackend:GenBCode</arg>
<arg>-target:jvm-1.8</arg>
 
And having scala-java8-compat_2.11 on the class-path, to achieve: https://github.com/scala/scala/pull/4463
 
Then I'm seeing this:
 
java.lang.ArrayIndexOutOfBoundsException: 22321
       at com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.<init>(BytecodeReadingParanamer.java:451)
       at com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.<init>(BytecodeReadingParanamer.java:431)
       at com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.<init>(BytecodeReadingParanamer.java:492)
       at com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.<init>(BytecodeReadingParanamer.java:337)
       at com.thoughtworks.paranamer.BytecodeReadingParanamer.lookupParameterNames(BytecodeReadingParanamer.java:100)
       at com.thoughtworks.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:75)
       at com.thoughtworks.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:68)
       at net.liftweb.json.Meta$ParanamerReader$.lookupParameterNames(Meta.scala:89)

 
 
But isn't in maven-central yet.
 
I've tested 2.7.1-SNAPSHOT and it works.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
Reply all
Reply to author
Forward
0 new messages