-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P3
-
Affects Version/s: 7, 11, 21, 22, 23
-
Component/s: client-libs
-
b27
JEditorPane.setPage(URL) loads the provided URL asynchronously.
The old pageLoader is not cancelled when the new stream is opened synchronously (p < 0). In this case, a synchronized block is used to assign the new value to pageLoader.
In the asynchronous case (p >= 0), the pageLoader.cancel is called but no synchronization is used, pageLoader could become null right after the code entered the corresponding if-block.
The new value is assigned to pageLoader without synchronization.
The old pageLoader is not cancelled when the new stream is opened synchronously (p < 0). In this case, a synchronized block is used to assign the new value to pageLoader.
In the asynchronous case (p >= 0), the pageLoader.cancel is called but no synchronization is used, pageLoader could become null right after the code entered the corresponding if-block.
The new value is assigned to pageLoader without synchronization.
- relates to
-
JDK-4714674 JEditorPane.setPage(url) blocks AWT thread when HTTP protocol is used
-
- Closed
-
- links to
-
Review(master)
openjdk/jdk/18670