Skip to content
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

JDK 11 is not supported #34

Open
YueZhaoDreams opened this issue Jun 2, 2020 · 2 comments
Open

JDK 11 is not supported #34

YueZhaoDreams opened this issue Jun 2, 2020 · 2 comments

Comments

@YueZhaoDreams
Copy link

Hi,
I need to use JDK 11 and my project depends on the paranamer, do we have any plan for the JDK 11 compatibility supported?

@paul-hammant
Copy link
Owner

Should be supported, what's the issue?

@kennymacleod
Copy link

kennymacleod commented Oct 18, 2021

The issue is that ASM 5.1, as used by paranamer-generator, does not support Java bytecode versions beyond 1.8 (see version history). Code compiled for a later bytecode target will fail, e.g.

Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init> (Unknown Source)
at org.objectweb.asm.ClassReader.<init> (Unknown Source)
at org.objectweb.asm.ClassReader.<init> (Unknown Source)
at com.thoughtworks.paranamer.generator.Enhancer.addExtraStaticField (Enhancer.java:62)
at com.thoughtworks.paranamer.generator.Enhancer.enhance (Enhancer.java:52)
at com.thoughtworks.paranamer.generator.QdoxParanamerGenerator.processClasses (QdoxParanamerGenerator.java:88)
at com.thoughtworks.paranamer.generator.QdoxParanamerGenerator.processSourcePath (QdoxParanamerGenerator.java:66)
at com.thoughtworks.paranamer.mojo.ParanamerGeneratorMojo.execute (ParanamerGeneratorMojo.java:95)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

Upgrading ASM should be a simple matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants