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

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Feb 24 11:43:03 PST 2011


$ javac <options> | grep -v "has private access"

Seriously, no. This is not a javac issue.  If a javac client (such as an 
annotation processor) is using javac API, and chooses to print 
information returned from javac, then that is up to the client.

-- Jon

On 02/24/2011 11:36 AM, Gabriele Kahlout wrote:
> What about from the commandline? Can the user pass a compiler option
> to suppress access warnings?
>
> On Thu, Feb 24, 2011 at 8:30 PM, Jonathan Gibbons
> <jonathan.gibbons at oracle.com>  wrote:
>> On 02/24/2011 11:23 AM, Jesse Glick wrote:
>>> On 02/24/2011 12:14 PM, Gabriele Kahlout wrote:
>>>> Who logs this, javac
>>> Grepping JDK 7 sources reveals
>>> 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.
>> javac does not provide control over what annotation processors choose to
>> report.
>>
>> -- Jon
>>
>
>




More information about the compiler-dev mailing list