Identical Java sources compile to binary differing classes

前端 未结 5 1859
醉梦人生
醉梦人生 2021-01-02 00:40

Can anyone explain how identical Java sources can end up compiling to binary differing class files?

The question arises from the following situation:

<
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 01:22

    same JDK can also have different output depending on how you compile. you can compile with or without debug info, you can compile to run in an older version, each option will result in other classes.

提交回复
热议问题