Java indexer must run outside of the compilation's source root
OpenPublic

Assigned To
schroederc
Priority
Low
Author
schroederc
Differential Revisions
Restricted Differential Revision
Restricted Differential Revision
Subscribers
None
Projects
  • Restricted Project
schroederc created this task.Via WebOct 22 2015, 10:50 AM
schroederc claimed this task.
schroederc added a project: Restricted Project.
schroederc changed the edit policy of this Maniphest Task from "All Users" to "Core Team (Project)".
schroederc added a comment.Via WebOct 22 2015, 12:18 PM

Due to the way javac scrounges the file system for source/class files, running the Java indexer in the compilation's source root usually ends in a java compilation error.

Errors occur because javac will find the source files for a compilation's dependencies (instead of using the .class files in the CompilationUnit) and try to compile the source files. However, the CompilationUnit will not have a classpath containing all transitive dependencies and the compilation of the dependent source file will fail with symbol completion exceptions.

schroederc added a revision: Restricted Differential Revision.Via WebOct 22 2015, 1:21 PM
schroederc added a revision: Restricted Differential Revision.Via ConduitOct 23 2015, 2:59 PM
schroederc changed the visibility of this Maniphest Task from "All Users" to "Public (No Login Required)".Via WebMay 16 2016, 3:30 PM

Add Comment