Community
Participate
Working Groups
Using 0107, we don't check the visibility of the array type before a message send. Test case: [package pkg; public class A1 { public static A[] array; static class A {} }] [class A { String s = pkg.A1.array.toString(); }] 1) Compile these sources. 2) No error reported. Jikes 1.18 and javac 1.4.1 report a visibility problem on pkg.A1.array. A.java:2: toString() in java.lang.Object is not defined in a public class or interface; cannot be accessed from outside package String s = pkg.A1.array.toString(); ^ 1 error Found 1 semantic error compiling "D:/temp/A.java": 2. String s = pkg.A1.array.toString(); ^----------^ *** Semantic Error: The type "pkg.A1$A[]" has default access and is not accessible here.
Fixed in latest, also added support for reporting visibility issue against receiver type.
Verified.