javac enum Flag has no entry for POTENTIALLY_AMBIGUOUS

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Sep 24 15:00:29 UTC 2018


I think you are right - given how the 'asFlagSet' is setup, any numeric 
constant that doesn't show up in the enum could cause a crash.

Maurizio


On 24/09/18 15:49, Brent Douglas wrote:
> Hello all,
>
> I have been looking into a crash in error-prone which I think stems 
> from the enum com.sun.tools.javac.code.Flags#Flag not having an entry 
> for POTENTIALLY_AMBIGUOUS, while the assertion at the end of 
> Flags#asFlagSet(long) makes me think it should.
>
> My apologies if this is the wrong list to bring this up on, if so 
> could someone please point me the the right list?
>
> Brent



More information about the compiler-dev mailing list