javac: ending positions generation and DiagnosticListener

Jonathan Gibbons jonathan.gibbons at
Fri Dec 6 12:40:29 PST 2013

On 12/06/2013 09:39 AM, Eugene Zhuravlev wrote:
> >there is no way to tell if a client of
> > the Compiler API needs the information or not.
> >
> But isn't javac's -Xjcov argument such a way?
> Eugene. 

Neither the methods on nor the
methods on com.sun.source admit to the possibility that
the information might be optional.  There is certainly no
refence to non-standard command line options like -Xjcov.

-Xjcov is one reason the endPosTable might be present,
but it is only part of the story.   Rather than thinking of some
options as enabling the existence of the endPosTable, it
is better think of it as being present/enabled by default
and only disabled (as an optimization) by javac if there is
no reasonable/supported way to get at the info in the table.

-- Jon

More information about the compiler-dev mailing list