Bug 3252 - Code assist list could be narrower in throws completion (1GD074C)
Summary: Code assist list could be narrower in throws completion (1GD074C)
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 98
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:52 EDT by Randy Giffen CLA
Modified: 2002-06-13 16:08 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 Randy Giffen CLA 2001-10-10 22:52:02 EDT
Enter the following in a java editor

public class Test {
	public void someMethod() throws A

Trigger code assist after the A
Note that the list includes types which are not throwable

Similarly the list could be narrowed for a catch statement

NOTES:

PM (4/30/2001 7:53:25 PM)
	At the time this was done, we had no support for finding exceptions. This is however something we could handle better now.
	Should revisit (however, exception hierarchies might take a while to compute).
Comment 1 DJ Houghton CLA 2001-10-23 23:53:01 EDT
PRODUCT VERSION:
0.101

Comment 2 Philipe Mulet CLA 2001-10-24 05:29:26 EDT
No action at the moment, we prefer it to be quick than smart.
Comment 3 Philipe Mulet CLA 2001-10-24 05:31:44 EDT
Defer
Comment 4 Philipe Mulet CLA 2001-10-24 05:32:11 EDT
Defer
Comment 5 Philipe Mulet CLA 2002-06-04 10:30:56 EDT
Solved by improving sorting based on relevance (exception types have a higher 
one).
Comment 6 Philipe Mulet CLA 2002-06-04 10:31:09 EDT
Closing
Comment 7 Randy Giffen CLA 2002-06-13 16:08:48 EDT
Verifed in F3