Bug 348175 - [navigation][1.7] Provide new hyperlink - Open LUB type 'SomeException'
Summary: [navigation][1.7] Provide new hyperlink - Open LUB type 'SomeException'
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 04:36 EDT by Deepak Azad CLA
Modified: 2011-06-06 10:22 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2011-06-03 04:36:21 EDT
- Ctrl+hover on 'ex' 
=> 3 hyperlinks are shown - Open Declaration, Open Declared Type 'FileNotFoundException', Open Declared Type 'InterruptedIOException'.

We should add another hyperlink - Open LUB type 'IOException'.

------------------------------------------------------------------------------
	void foo() {
		try {
			int a = 10;
			if (a < 10)
				throw new FileNotFoundException();
			else
				throw new InterruptedIOException();
		} catch (FileNotFoundException | InterruptedIOException ex) {
			ex.printStackTrace();
		}
	}
------------------------------------------------------------------------------
Comment 1 Markus Keller CLA 2011-06-06 10:22:24 EDT
The multiple "Open Declared Type" links are from bug 341485.

Note that the LUB is not always a single type (bug 340059 comment 7). Performance-wise, this will not come for free, since we only get an intersection type signature from the IJavaElement.