Current Behavior
In PlurlImpl the method ServiceLoader.load() is called which returns a ServiceLoader. A ServiceLoader is defined by documation as not thread-safe.
This PlurlImpl is stored in URLConnection.setContentHandlerFactory().
When working with URLConnections from different threads this can lead to failures.
Expected Behavior
no exception in concurrent calls from different threads
Steps To Reproduce
Attached a test to demonstrate the error:
ConcurrentRunTest.java
Version
org.eclipse.osgi-3.24.0
Are you interested in contributing a solution yourself?
None
Anything else?
No response
Current Behavior
In PlurlImpl the method ServiceLoader.load() is called which returns a ServiceLoader. A ServiceLoader is defined by documation as not thread-safe.
This PlurlImpl is stored in URLConnection.setContentHandlerFactory().
When working with URLConnections from different threads this can lead to failures.
Expected Behavior
no exception in concurrent calls from different threads
Steps To Reproduce
Attached a test to demonstrate the error:
ConcurrentRunTest.java
Version
org.eclipse.osgi-3.24.0
Are you interested in contributing a solution yourself?
None
Anything else?
No response