Skip to content

fix: enable heavy JAXP operations on a Java 24 #4071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mamilic
Copy link

@mamilic mamilic commented Jun 11, 2025

This PR addresses this issue, eclipse-jdtls/eclipse.jdt.ls#3465

Adds system properties to disable JAXP limits

@mamilic
Copy link
Author

mamilic commented Jun 11, 2025

Hi @rgrunber , I was wondering if tests are needed for the params added?

Copy link
Member

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue. No need for tests in this case. The only thing I'd add is a comment above the if-statement (eg. if (requirements.tooling_jre_version >= 24) { ) linking to the JDT-LS issue, eclipse-jdtls/eclipse.jdt.ls#3465 .

Also I'd rename the title of the commit to :

"Remove JAXP entity limits when runtime is Java 24 or higher"

@mamilic
Copy link
Author

mamilic commented Jun 13, 2025

Hi @rgrunber , I've made changes, does it look fasible now?

@Ninjadeveloper007
Copy link

I approve this `From 159fde8 Mon Sep 17 00:00:00 2001
From: Marko Milic [email protected]
Date: Thu, 12 Jun 2025 07:43:32 +0200
Subject: [PATCH] Remove JAXP entity limits when runtime is Java 24 or higher

Signed-off-by: Marko Milic [email protected]

src/javaServerStarter.ts | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/src/javaServerStarter.ts b/src/javaServerStarter.ts
index 19ebf744e..d9f10aea2 100644
--- a/src/javaServerStarter.ts
+++ b/src/javaServerStarter.ts
@@ -96,6 +96,13 @@ function prepareParams(requirements: RequirementsData, workspacePath, context: E
// params.push('-agentlib:jdwp=transport=dt_socket,server=y,address=1044');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants