What is: Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. #23
-
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?
|
Beta Was this translation helpful? Give feedback.
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"))
); |
Beta Was this translation helpful? Give feedback.
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: