This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199113 - ConnectionManager.connectTo throws CancellationException, which is runtime exception
Summary: ConnectionManager.connectTo throws CancellationException, which is runtime ex...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 14:31 UTC by Vladimir Kvashin
Modified: 2011-06-07 06:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2011-06-02 14:31:45 UTC
Now ConnectionManager.connectTo throws CancellationException, which is runtime exception, i.e. it isn't obligatory to catch it. 

I noticed it when investigating CND && SolStudio code: there are places where it isn't catched at all.

This is incorrect. Should be replaced by an exception of our own so that clients should necessarily catch it.
Comment 1 Vladimir Kvashin 2011-06-07 00:13:36 UTC
Fixed
http://hg.netbeans.org/releases/rev/3ad695ea3a04

I found more than 10 places in cnd & dlight that did not catch CancellationException. 

In each such place I added a primitive processing and a comment
// TODO:CancellationException error processing

These places should be inspected once more.
Comment 2 Quality Engineering 2011-06-07 06:30:12 UTC
Integrated into 'main-golden', will be available in build *201106070601* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: