Compile classes to different language level? #13
Answered
by
Roberto-Gentili
HatthewMarris
asked this question in
Q&A
|
Hello! I am currently making use of the JavaMemoryCompiler to generate some classes. I am running with Java 11 but need to generate Java 8 compatible code. Is it possible to configure the relevant target / release flags to be able to ensure Java 8 compatible classes are generated? Thanks. |
Answered by
Roberto-Gentili
Feb 9, 2022
Replies: 1 comment
|
Hello! |
0 replies
Answer selected by
HatthewMarris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
You can call the method
org.burningwave.core.classes.JavaMemoryCompiler.Compilation.Config.setVersionon your configuration object: it will set the--releaseflag.If you need to set other compiler parameters you can call the method
org.burningwave.core.classes.JavaMemoryCompiler.Compilation.Config.putExtraParameter