Is it possible for the same javac compiler to compile the same set of source files but produce class files of different checksums?

后端 未结 2 603
滥情空心
滥情空心 2021-01-22 17:22

I was attempting to compare the results of this: (in ant)

                       

        
2条回答
  •  情话喂你
    2021-01-22 17:56

    as you showed, the difference is in the generated constant pool, which is really a non-issue, but troubling as you would expect the same output with the same compiler and options. i would bet that the compiler is called with the java files in different order between the two situations, and the order of compilation is affecting the result.

提交回复
热议问题