What is: Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. #23
Answered
by
Roberto-Gentili
westsail42
asked this question in
Q&A
|
Hello, I am trying to extend an existing class on-the-fly and use it in the same process. I followed the ClassFactory example. The class being extended does have annotations (which need to be kept in the extended class). The following exception happens. It suggests something about changing configuration with -proc:none or -implicit. I looked for equivalent settings in the burningwave.static.properties file, but didnt really find anything. Anyone have ideas? |
Answered by
Roberto-Gentili
Apr 12, 2023
Replies: 1 comment 2 replies
|
I think you need to pass extra paramters to the compiler. For this purpose you need to use the method componentSupplier.getClassFactory().loadOrBuildAndDefine(
LoadOrBuildAndDefineConfig.forUnitSourceGenerator(unitSG)
.modifyCompilationConfig(config -> config.putExtraParameter("-implicit", "Here the policy for implicit compilation"))
); |
2 replies
Answer selected by
westsail42
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you need to pass extra paramters to the compiler. For this purpose you need to use the method
org.burningwave.core.classes.JavaMemoryCompiler.Compilation.Config.putExtraParameter. Try with this: