-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayIndexOutOfBoundsException when using lambdas and JDK 8 #90
Comments
I have found a solution to the problem and I submitted a PR, but there are some considerations to be made, you guys can merge the PR if it is ok to you. The considerations are:
|
I had seen similar issue while using Pico, a detailed report is provided https://stackoverflow.com/questions/54197373/pico-paranamer-throwing-java-lang-arrayindexoutofboundsexception; I think the issue is still present. |
To fix this problem until this PR is not included in a release, is it possible to manually change the version of the paranamer dependency from 2.5 to 2.8, as it improves compatibility with Java 8. It worked for me. As I'm using maven to manage dependecies, my pom file is now something like this: <dependency>
<groupId>br.com.six2six</groupId>
<artifactId>fixture-factory</artifactId>
<version>${fixture-factory.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.thoughtworks.paranamer</groupId>
<artifactId>paranamer</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.thoughtworks.paranamer</groupId>
<artifactId>paranamer</artifactId>
<version>2.8</version>
<scope>test</scope>
</dependency> |
Hello guys! I'm a fellow developer from Brazil who is liking very much this library that you wrote.
Nonetheless, I'm having trouble to make the library work with JDK 8 (and lambda expressions).
I have a class which uses Lambda expressions and whenever FixtureFactory tries to build it, the lib throws an ArrayIndexOutOfBoundsException.
I am pretty sure it has something to do with this issue here: The BytecodeReadingParanamer throws an Exception in Java8 when the class contains lambda expressions
I'm currently using JDK 8 (1.8.0_91) with Maven (3.0.5) and FixtureFactory 3.1.0.
Here is the full stack trace:
The text was updated successfully, but these errors were encountered: