This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
private static JavacTaskImpl createJavacTask(final ClasspathInfo cpInfo, final DiagnosticListener<? super JavaFileObject> diagnosticListener, final String sourceLevel, final boolean backgroundCompilation) {
ArrayList<String> options = new ArrayList<String>();
if (!backgroundCompilation) {
options.add("-Xlint");
options.add("-Xjcov"); //NOI18N, Make the compiler store end positions
} else {
options.add("-XDbackgroundCompilation"); //NOI18N