-
CSR
-
Resolution: Approved
-
P3
-
None
-
minimal
-
Java API
-
SE
Summary
The specification of SwingWorker.get methods fail to declared unchecked exceptions declared to be thrown by the methods being overridden.
Problem
CancellationException is not specified in SwingWorker.get
Solution
The spec will copy the text from the parent class, if @throws CancellationException {@inheritDoc} will be added. The final text will be "Throws: CancellationException - if the computation was cancelled"
Specification
src/java.desktop/share/classes/javax/swing/SwingWorker.java
* </pre>
+ *
+ * @throws CancellationException {@inheritDoc}
*/
public final T get() throws InterruptedException, ExecutionException {
/**
* {@inheritDoc}
* <p>
* Please refer to {@link #get} for more details.
+ *
+ * @throws CancellationException {@inheritDoc}
*/
public final T get(long timeout, TimeUnit unit) throws InterruptedException,
- csr of
-
JDK-6608234 SwingWorker.get throws CancellationException
- Resolved