Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341209

Summary: [quick fix] Incorrect proposal when package visible type is used in another package
Product: [Eclipse Project] JDT Reporter: Ayushman Jain <amj87.iitr>
Component: UIAssignee: rgra Missing name <rgransberger>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, noopur_gupta
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ayushman Jain CLA 2011-03-29 06:56:01 EDT
package p;

class IException1 extends q.ExceptionA {
	
}
--------------------------------------------------------------------------
package q;

class ExceptionA extends RuntimeException {

}
---------------------------------------------------------------------

In the above code, i get an error in p.IException1 saying "The type q.ExceptionA" is not visible", and a quick fix suggestion - "Change visibility of ExceptionA to protected". 

This is an invalid modifier for a class and leads to an error on exercising this quick fix.

Build: I20110322-0800
Comment 1 Noopur Gupta CLA 2013-02-05 07:47:32 EST
Tested with Build ID: I20130204-1400.
The bug is reproducible.
Comment 2 Dani Megert CLA 2013-03-12 08:27:40 EDT

*** This bug has been marked as a duplicate of bug 394692 ***