Skip to content

Commit f53c161

Browse files
committed
Stop describing the raw IllegalAccessError on the Gradle page
openjavaformat/open-java-format#79 makes formatDiff stop before the first file when the Gradle JVM does not export javac's packages, with a message that names the two settings, so the sentence that described the raw IllegalAccessError and the module it mentioned no longer matches. The page now says to pick one of the two settings and what happens without either.
1 parent dff4404 commit f53c161

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎docs/get-started/gradle.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ The formatter itself is downloaded from Maven Central, in the same version as th
3535

3636
## Choose how the formatter runs
3737

38-
The formatter reads javac's internal classes, which a plain Gradle JVM does not open up. Without one
39-
of the two settings below, `formatDiff` fails with an `IllegalAccessError` that mentions
40-
`module jdk.compiler does not export com.sun.tools.javac.parser`.
38+
The formatter reads javac's internal classes, which a plain Gradle JVM does not open up. Pick one of
39+
the two settings below; without either, `formatDiff` stops before the first file and names them.
4140

4241
=== "Native binary"
4342

0 commit comments

Comments
 (0)