Bug 29211

Summary: Should check the visibility of the array type before accessing its length field
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Olivier Thomann CLA 2003-01-09 10:40:54 EST
Using 0107,

We don't report an error for the following source.
[package pkg;
public class A1 {
    public static A[] array;
    protected static class A {}
}]

[
class A {
    int i = pkg.A1.array.length;
}
]

1) Compile these two sources files.
2) We don't report any error.

javac 1.4.1 or jikes 1.18 report a visibility problem on pkg.A1.array.
Same problem with private access.
Comment 1 Philipe Mulet CLA 2003-01-10 05:55:52 EST
Fixed in latest, also added support for reporting visibility issue against 
receiver type.
Comment 2 David Audel CLA 2003-02-10 06:46:25 EST
Verified.