<Swing Dev> [11] Review Request: 6608234 SwingWorker.get throws CancellationException
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri Jun 8 00:43:54 UTC 2018
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
--
Best regards, Sergey.
More information about the swing-dev
mailing list