Skip to content

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
Discussion options

You must be logged in to vote

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:

componentSupplier.getClassFactory().loadOrBuildAndDefine(
    LoadOrBuildAndDefineConfig.forUnitSourceGenerator(unitSG)
    .modifyCompilationConfig(config -> config.putExtraParameter("-implicit", "Here the policy for implicit compilation"))
);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@westsail42
Comment options

@Roberto-Gentili
Comment options

Answer selected by westsail42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants