Where from "has private access in " is logged? I'd like to suppress it

Gabriele Kahlout gabriele at mysimpatico.com
Thu Feb 24 11:35:39 PST 2011

Thank you Jesse - you are always awesome!

The good news is that it's in tools.jar which I could modify and build against.
It seems like in jdk6 it's done through logAccessError [1]; The
workaround described earlier doesn't sound so bad after all.

[1] http://www.docjar.com/docs/api/com/sun/tools/javac/comp/Resolve.html#logAccessError(Env,%20JCTree,%20Type)

> com.sun.tools.javac.comp.Resolve.AccessError.getDiagnostic. Whether there is
> some way to suppress the message from an annotation processor, I have no
> clue.

Does anyone have a clue? Could this be a Feature Request?

K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
time(x) < Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the
email does not contain a valid code then the email is not received. A
valid code starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y
∈ L(-[a-z]+[0-9]X)).

More information about the compiler-dev mailing list