<Swing Dev> [11] Review Request: 6608234 SwingWorker.get throws CancellationException

Philip Race philip.race at oracle.com
Fri Jun 8 22:19:40 UTC 2018


+1

-phil.

On 6/7/18, 5:43 PM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk11.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-6608234
> Webrev: http://cr.openjdk.java.net/~serb/6608234/webrev.00
> CSR: https://bugs.openjdk.java.net/browse/JDK-8204587
>
> The SwingWorker.get(XX) methods copy the text of exceptions from the 
> parent class, but the text for CancellationException is not copied, 
> because CancellationException is unchecked exception and not declared 
> in the method.
>
> The similar bug was fixed for the parent class[1], so I used the same 
> approach and add a "@throws CancellationException {@inheritDoc}" to 
> the methods.
>
> [1] https://bugs.openjdk.java.net/browse/JDK-6299797
>



More information about the swing-dev mailing list