Bug 5402 - Smarter code assist for catch blocks
Summary: Smarter code assist for catch blocks
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-01 05:10 EST by Tim Ellison CLA
Modified: 2007-06-29 04:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Ellison CLA 2001-11-01 05:10:45 EST
Sure would be good if the code assist was smart about the exceptions that could 
be thrown from a try block, and only offer those in a code assist in the 
corresponding catch statement.  The compiler sure warns that an exception is 
not caught, or cannot be caught from a particular try block.

e.g.,
  try {
    myinfputStream.read();
  } catch (

bringing up assist after the "catch (" should offer a list headed by checked 
exceptions from the try block.
Comment 1 Philipe Mulet CLA 2001-11-05 08:57:01 EST
This would require a change in the completion engine. Currently it does not even 
resolve the statements inside the catch block (they got optimized out).

Will keep in mind, but not for now.
Comment 2 Philipe Mulet CLA 2002-07-25 06:59:35 EDT
Reopening
Comment 3 Philipe Mulet CLA 2002-07-25 07:00:53 EDT
Clearing resolution
Comment 4 Philipe Mulet CLA 2002-07-25 07:19:18 EDT
Either this approach or the relevance one would be ok.
Comment 5 Philipe Mulet CLA 2003-03-05 06:14:23 EST
Defer
Comment 6 David Audel CLA 2007-06-29 04:52:57 EDT
Reopen
Comment 7 David Audel CLA 2007-06-29 04:53:46 EDT
This feature exists in 3.3. Fixed in a previous build.