I am not an expert in the compiler, but I am inclined to believe that other answers suggest that binary comparison is not 100% more reliable.
I would consider another alternative: you should be able to check artifacts created by your build system (.jars and .wars, etc.), and ensure that everyone has the expected content, and even the size of each file, within a fairly tight tolerance .
If your build script generates the source code and compiles it, then you should be able to make comparisons with the generated source, which, as I expected, will be 100% stable from build to build. (Or at least predictable).
Hope this helps!
source share