On Feb 8, 2015 6:25 AM, "Thomas Broyer" <t.br...@gmail.com> wrote:
>
> Hi all,
>
> TL;DR: Pants should probably pass a -sourcepath to javac. I have repro cases for Buck and Gradle but someone would have to check if Pants has that same bug and it's not easy to setup.
>
> It all started with “javax.inject:javax.inject:1:sources on classpath during javac compilation / annotation processor execution […] will cause an annoying warning: "Implicitly compiled files were not subject to annotation processing." and you end up with an implicitly compiled Provider.class in the compile output.” [1]
That error is caused having resources on the compile classpath instead of the runtime classpath iiuc. I'm not positive if pants gets this right from my phone, but supplying a sourcepath would be wrong since a target can own a single file in a direction of many java files.
You have varied examples though in the links below - perhaps you could make clear which class of issues you cate about (is the apt issue hitting you too or is that just an ~unrelated example?).
On Feb 8, 2015 6:25 AM, "Thomas Broyer" <t.br...@gmail.com> wrote:
>
> Hi all,
>
> TL;DR: Pants should probably pass a -sourcepath to javac. I have repro cases for Buck and Gradle but someone would have to check if Pants has that same bug and it's not easy to setup.
>
> It all started with “javax.inject:javax.inject:1:sources on classpath during javac compilation / annotation processor execution […] will cause an annoying warning: "Implicitly compiled files were not subject to annotation processing." and you end up with an implicitly compiled Provider.class in the compile output.” [1]That error is caused having resources on the compile classpath instead of the runtime classpath iiuc.
I'm not positive if pants gets this right from my phone, but supplying a sourcepath would be wrong since a target can own a single file in a direction of many java files.
You have varied examples though in the links below - perhaps you could make clear which class of issues you cate about (is the apt issue hitting you too or is that just an ~unrelated example?).
> [1] https://github.com/google/dagger/pull/119#issuecomment-73374196
> [2] https://code.google.com/p/google-web-toolkit/issues/detail?id=3439
> [3] https://jira.codehaus.org/browse/MCOMPILER-26 vs. https://jira.codehaus.org/browse/MCOMPILER-122
> [4] http://forums.gradle.org/gradle/topics/gradle-should-pass-sourcepath-to-javac-by-default-to-avoid-false-positives
> [5] https://github.com/facebook/buck/issues/244
> [6] https://gist.github.com/tbroyer/512941cd798e1ccba4b4