Skip to content

Revisit the logic to set the java source/target compatibility #187

Closed

Description

Full context can be found here: redhat-developer/vscode-java#3721

In short, simply check the compilation options may have some issue for some cases, An example is the project in the linked issue.

User can set the source level to 17, and target level to 8. Meanwhile, use [--release, 8] as the compilation arguments. Normally, this should fail during compilation. But the project uses a annotation processor to make it work.

Which says, maybe we should just simply get the source compatibility from the property, not infer it from the compilation options?

@Arthurm1, WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions