Identical Java sources compile to binary differing classes

前端 未结 5 1862
醉梦人生
醉梦人生 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:20

    Different versions of Java can add different meta data which is often ignored by a decompiler.

    I suggest you try using javap -c -v for more of the details in a file. If this doesn't help you can use the ASMifierClassVisitor which looks at every byte.

提交回复
热议问题