javac throws a CompletionFailure due to bug 6550655

Rémi Forax forax at
Mon Apr 18 17:18:13 PDT 2011

On 04/19/2011 02:00 AM, Rémi Forax wrote:
> Hi compiler guys,
> During a stupid refactoring I've fallen into bug 6550655
> which is quite popular.
> The problem is that for asking if the symbol is an annotation
> the code use expected.tsym.flags() that triggers a ClassReader.complete
> that fails because the class file doesn't exist.
> So a CompletionFailureException is thrown (ClassReader:2232)
> and never catch.
> I haven't change the code in ClassReader:2232 even if it creates
> a diagnostic fragment which seems not used,
> but maybe I'm wrong about that ?

I'm wrong. It can be used in Check.completionError.


More information about the compiler-dev mailing list