Skip to content

Commit 7f0cda8

Browse files
testforstephenfbricon
authored andcommitted
Add '--add-opens java.base/sun.nio.fs=ALL-UNNAMED' to the JLS jvmargs
Signed-off-by: Jinbo Wang <[email protected]>
1 parent f68ba7e commit 7f0cda8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/javaServerStarter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ function prepareParams(requirements: RequirementsData, javaConfiguration, worksp
6464
'--add-opens',
6565
'java.base/java.util=ALL-UNNAMED',
6666
'--add-opens',
67-
'java.base/java.lang=ALL-UNNAMED');
67+
'java.base/java.lang=ALL-UNNAMED',
68+
// See https://github.com/redhat-developer/vscode-java/issues/2264
69+
// It requires the internal API sun.nio.fs.WindowsFileAttributes.isDirectoryLink() to check if a Windows directory is symlink.
70+
'--add-opens',
71+
'java.base/sun.nio.fs=ALL-UNNAMED');
6872

6973
params.push('-Declipse.application=org.eclipse.jdt.ls.core.id1',
7074
'-Dosgi.bundles.defaultStartLevel=4',

0 commit comments

Comments
 (0)