TestCompiler only sets the configured processors if the list is not empty. This means that if nothing is configured, annotation processors are discovered from the classpath and the only way to disable annotation processing is to pass -proc:none. It's probably better to never discover annotation processors as it can have side effects but we can expose an option if it turns out we need this.