scala-ide/scala-ide — comment on commit f71ac73714894fed873aa7934970b3197ceef935
File:  line 0
By froden:

Ok, I finally figured out why I still experienced the same problem. If module B depends on A and I changed a java source in A, sbt would ask for recompilation of a couple of classes in B that did not depend on the change introduced in A (this seems like a bug). The deltas would be correctly picked up by the BuildManager aspect but since there was no actual change in B the delta that got wrapped in an ExtendedResourceDelta had getKind() == IResourceDelta.NO_CHANGE and would therefore be ignored by the javabuilder later. I changed ExtendedResourceDelta.getKind() so that it never returns NO_CHANGE and now the entire project builds consistently! (Please see the comment in ExtendedResourceDelta above).