Skip to content
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

Continue without setting TCCL #447

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

guw
Copy link
Contributor

@guw guw commented Dec 18, 2023

When called from within a fork-join pool, setting the TCCL is not permitted. Therefore catch and continue without setting a TCCL.

Fixes #303.

See eclipse-equinox#303 why setting TCCL can fail in a regular JDK without SecurityManager. Therefore catch and continue without setting a TCCL.
When this method is called from within a fork-join pool it's impossible to set a TCCL. The JVM will always throw a SecurityException. Therefor we catch it a continue without setting one.
@guw
Copy link
Contributor Author

guw commented Dec 18, 2023

@tjwatson Any guidance/requirements for unit testing this?

Copy link

github-actions bot commented Dec 18, 2023

Test Results

   78 files  ±0     78 suites  ±0   38m 28s ⏱️ + 1m 59s
2 170 tests ±0  2 125 ✅ ±0   45 💤 ±0  0 ❌ ±0 
6 642 runs  ±0  6 505 ✅ ±0  137 💤 ±0  0 ❌ ±0 

Results for commit 48d2bc1. ± Comparison against base commit c6a0f08.

♻️ This comment has been updated with latest results.

@laeubi laeubi requested a review from tjwatson April 16, 2024 14:38
@tjwatson tjwatson merged commit 192cf17 into eclipse-equinox:master Apr 16, 2024
26 of 27 checks passed
@tjwatson
Copy link
Contributor

Thanks Gunner on turning around a fix and addressing the review! I apologize for the slow response to your PR. It is merged now.

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.

SecurityException in XMLParsingServiceFactory.getService() / lsp4e
2 participants