JDK-7142264 : compiler treats source file like a class file
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2012-02-02
  • Updated: 2012-02-14
  • Resolved: 2012-02-14
Related Reports
Duplicate :  
Relates :  
Description
JavaCompiler.CompilationTask task2 = javac.getTask(null,sjfm,dl,opts,Arrays.asList("Test03.java"),null);

When getTask is given a List of sources for 'classes' it used to compile it.
It now fails with what looks to be an expected error. 

It seems correct now, since there is something in the 'classes' parm but no processor option is used, but it is different than jdk7 and jdk6.