I'm encountering a rather odd behavior, and not sure if this is a Java issue or just something with Eclipse.
Take the following code:
class Foo {
private String text;
public void doStuff(Foo f) {
System.out.println(f.text);
}
}
The problem here is, why is f.text accessible? It's a private field, so by my logic, it shouldn't be, but the IDE seems to think it is.