Is it possible to check if a given Java binaries was compiled with a given source code.
Currently I have a project that was built by a vendor (WAR files). The source code of this project will be release in a few months but my superiors are asking me how can we know if the WAR files we deployed in production was generated with source code that will be provided to us in the future.
The vendor is suggesting to use pkgdiff but I am not sure if this checks the implementation of the methods instead of just the methods signature.
Can anyone suggest any methods or tools to ensure that the given source code is the one used to make the binaries (Java WAR files)
Also I read this question How to check if binaries are built from particular sources is the accepted answer the only real option to be 100% sure?
Thanks.