Resolve class name from bytecode

后端 未结 5 598
陌清茗
陌清茗 2021-01-14 23:46

Is it possible to dig up a classes name from bytecode which is formed from the class\' source code?

The situation is this: I get a classes bytecode remotely from so

5条回答
  •  情深已故
    2021-01-15 00:22

    I think you can use the ClassLoader.defineClass method, in a subclass of ClassLoader, to get the Class object for a given bytecode. (not tested)

提交回复
热议问题