Bug 348175

Summary: [navigation][1.7] Provide new hyperlink - Open LUB type 'SomeException'
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, deepakazad, markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.