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

move Java compiler args into the @CompiledJson annotation as options #275

Open
elf4j opened this issue Apr 16, 2024 · 1 comment
Open

move Java compiler args into the @CompiledJson annotation as options #275

elf4j opened this issue Apr 16, 2024 · 1 comment

Comments

@elf4j
Copy link

elf4j commented Apr 16, 2024

Hi,

Is it possible to move some/all Java compiler args, e.g. "allow unknown", into the @CompiledJson annotation as options. That way, one can work with such options directly within the Java code, instead of messing with the build tools like Maven/Gradle.

With some recent upgrades of Maven/Java versions, I am running into some Maven compiler issues while trying to pass in such options as compiler args. I am still trying to figure out the exact cause of the errors but that is beside the point of this request: It'd be much nicer if such options can be done within the Java code/annotation itself.

Thanks!

@zapov
Copy link
Member

zapov commented Apr 26, 2024

Not really as its an option regarding whole compilation.

The usual way to deal with it is to mark properties causing that with relevant converter like this:

@JsonAttribute(converter = MapAnalyzer.Runtime.class)

Is that not sufficient?

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

2 participants