Skip to content

Commit d71d0a4

Browse files
mamilicrgrunber
authored andcommitted
Remove JAXP entity limits when runtime is Java 24 or higher
Signed-off-by: Marko Milic <[email protected]>
1 parent 8a642e5 commit d71d0a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/javaServerStarter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ function prepareParams(requirements: RequirementsData, workspacePath, context: E
9696
// params.push('-agentlib:jdwp=transport=dt_socket,server=y,address=1044');
9797
}
9898

99+
// See https://github.com/eclipse-jdtls/eclipse.jdt.ls/issues/3465
100+
if (requirements.tooling_jre_version >= 24) {
101+
params.push('-Djdk.xml.maxGeneralEntitySizeLimit=0',
102+
'-Djdk.xml.totalEntitySizeLimit=0'
103+
);
104+
}
105+
99106
params.push('--add-modules=ALL-SYSTEM',
100107
'--add-opens',
101108
'java.base/java.util=ALL-UNNAMED',

0 commit comments

Comments
 (0)