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

Add an API for retrieving JVM target source version #810

Closed
danysantiago opened this issue Jan 26, 2022 · 0 comments · Fixed by #827
Closed

Add an API for retrieving JVM target source version #810

danysantiago opened this issue Jan 26, 2022 · 0 comments · Fixed by #827
Assignees
Labels
api API changes may be involved P1 major features or blocking bugs
Milestone

Comments

@danysantiago
Copy link
Member

Such API would be helpful for processors to determine if they can generate certain Java code, such as lambdas, or default interface methods. KSP already provides in SymbolProcessorEnvironment the kotlinVersion for Kotlin codegen but it would be great if it had the jvm-target-version option the compiler takes too.

For reference, Javac's equivalent is ProcessingEnvironment#getSourceVersion()

@ting-yuan ting-yuan self-assigned this Jan 26, 2022
@ting-yuan ting-yuan added api API changes may be involved P1 major features or blocking bugs labels Jan 26, 2022
@ting-yuan ting-yuan added this to the 1.0.3 milestone Jan 26, 2022
@ting-yuan ting-yuan linked a pull request Feb 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API changes may be involved P1 major features or blocking bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants