Generating methods with generic types with Asm bytecode generator (ClassWriter)

前端 未结 2 1634
别那么骄傲
别那么骄傲 2021-02-13 13:34

Defining simple getters and setters is easy using Asm (and fortunately it is even explained in their FAQ). But one thing that is not mentioned, and for which I have been unable

2条回答
  •  [愿得一人]
    2021-02-13 14:07

    In my experience most on-the-fly bytecode generation libraries don't have good support for generic types; however erased classes work just fine (unless you want to introspect those classes later, of course).

提交回复
热议问题