Skip to content

Commit a86db1e

Browse files
committed
Update table listing Java 17 support on the website
1 parent b67d98b commit a86db1e

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

docs/getting-started.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,22 @@ part of your regular compilation in the build tool. By using Java compiler APIs,
164164
`lsif-java` is able to generate accurate indexing information for a broad range
165165
of Java versions.
166166

167-
| Java version | Support | Tracking issue |
168-
| ------------ | ------------------------------ | -------------------------------------------------------------------------------- |
169-
| Java 7 || |
170-
| Java 8 || |
171-
| Java 11 || |
172-
| Java 12 | Not tested in CI, but may work | |
173-
| Java 13 | Not tested in CI, but may work | |
174-
| Java 14 | Not tested in CI, but may work | |
175-
| Java 15 || |
176-
| Java 16 || |
177-
| Java 17 || [sourcegraph/lsif-java#263](https://github.com/sourcegraph/lsif-java/issues/263) |
167+
| Java version | Support | Tracking issue |
168+
| ------------ | ----------------------------------- | -------------- |
169+
| Java 7 || |
170+
| Java 8 || |
171+
| Java 11 || |
172+
| Java 17 | ✅, requires custom `--add-exports` | |
173+
174+
For Java 17 and newer versions, the following JVM options are required:
175+
176+
```
177+
--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
178+
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
179+
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
180+
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
181+
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
182+
```
178183

179184
### Scala
180185

0 commit comments

Comments
 (0)