Skip to content

Conversation

olafurpg
Copy link
Contributor

@olafurpg olafurpg commented Oct 20, 2021

Previously, the SemanticDB compiler plugin crashed when compiling code
with Java 17 because it was using private APIs. This commit refactors
the code to use blessed public APIs so that compiling with Java 17 works
successfully.

This commit only fixes the issues for the compiler plugin. Running
lsif-java index on Gradle/Maven projects will still fail on Java 17
projects since we don't automatically configure the requried
--add-exports flags.

Towards #263

@olafurpg olafurpg changed the title Add support for Java 17 Make compiler plugin work with Java 17 Oct 20, 2021
@olafurpg olafurpg requested a review from Strum355 October 20, 2021 10:20
@olafurpg olafurpg self-assigned this Oct 20, 2021
Previously, the SemanticDB compiler plugin crashed when compiling code
with Java 17 because it was using private APIs. This commit refactors
the code to use blessed public APIs so that compiling with Java 17 works
successfully.

This commit only fixes the issues for the compiler plugin. Running
`lsif-java index` on Gradle/Maven projects will still fail on Java 17
projects since we don't automatically configure the requried
`--add-exports` flags.
@olafurpg olafurpg merged commit f7b8bb3 into sourcegraph:main Oct 20, 2021
@olafurpg olafurpg deleted the java-17 branch October 20, 2021 13:32
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

Successfully merging this pull request may close these issues.

1 participant