Skip to content

Commit 20527aa

Browse files
plumpygoogle-java-format Team
authored and
google-java-format Team
committed
Update the --add-exports instructions.
I don't really understand _why_ this works. I'm able to (easily) reproduce the problem by not including the `=` in my `idea64.options` file. But then if I copy/paste the command line out of `ps`, it works fine. And since it's easy enough to change this, I'm inclined to just do that? Fixes #908. PiperOrigin-RevId: 514440074
1 parent 1651dea commit 20527aa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ without extra configuration. To use the plugin, go to `Help→Edit Custom VM
5454
Options...` and paste in these lines:
5555

5656
```
57-
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
58-
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
59-
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
60-
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
61-
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
62-
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
57+
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
58+
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
59+
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
60+
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
61+
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
62+
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
6363
```
6464

6565
Once you've done that, restart the IDE.
@@ -105,12 +105,12 @@ following JVM flags are required when running on JDK 16 and newer, due to
105105
[JEP 396: Strongly Encapsulate JDK Internals by Default](https://openjdk.java.net/jeps/396):
106106

107107
```
108-
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
109-
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
110-
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
111-
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
112-
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
113-
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
108+
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
109+
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
110+
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
111+
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
112+
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
113+
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
114114
```
115115

116116
#### Maven

0 commit comments

Comments
 (0)