Bug 7072

Summary: Protected member in superclass not visible in subclass
Product: [Eclipse Project] JDT Reporter: Mark Rose <markrose>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
ZIP file with Java source files exhibiting the bug none

Description Mark Rose CLA 2001-12-18 17:05:19 EST
(May be related to #7066)

Eclipse version: 2.0 build 20011206
Works fine in JDK 1.3.1_01

When creating a subclass in a different package than the superclass, a 
protected inner class in the superclass isn't visible. (Appears to work OK if 
the subclass and superclass are in the same package.)

Class Hierarchy:
    public class One {
        public static class Inner {}
    }
    public class Two extends One {
        protected static class Inner extends One.Inner {}   <--- 1
    }
    public class Three extends Two {
        public static class Inner extends Two.Inner {}      <--- 2
    }

Note 1: If this is changed from protected to public all is OK.
Note 2: If Three is in the same package as Two, all is OK.
        If not, Two.Inner is marked as "not visible"

Actual source files are attached.
Comment 1 Mark Rose CLA 2001-12-18 17:05:43 EST
Created attachment 195 [details]
ZIP file with Java source files exhibiting the bug
Comment 2 Philipe Mulet CLA 2001-12-19 05:47:15 EST
Indeed this is a duplicate of 7066 or 3368.

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