Community
Participate
Working Groups
Build 3.1rc1 On following testcase, the various occurrences of visibility errors are not flagged with a consistent error message: public class X { X someX; private int val = 0; } class Other { { int i = new X().someX.val; // The field val is not visible X x = new X(); int j = x.someX.val; // The field x.someX.val is not visible } } Both should include the field declaring class, and read: The field X.val is not visible
Changed problem reporter, and adapted various compiler tests which were exposing offending error message (e.g. NegativeTest#test221).
Verified for 3.1 RC2 using build N20050607-0010 + JDT/Core HEAD However, note that text range for the compiler error is still inconsistent: - first is "val" - second is "x.someX.val" Perhaps should it be "someX.val" for both?
Open bug 98689 for field source range inconsistencies.
Verified with I20050610-0010