Extending or adding new classes at runtime in Java

前端 未结 3 1178
情书的邮戳
情书的邮戳 2020-12-11 06:36

Is there a way to add (or extend existing) classes at runtime in java. I\'m stuck on a problem, in which I have to extend an existing class at runtime and add this to the cl

3条回答
  •  失恋的感觉
    2020-12-11 07:25

    You might want to look at BCEL. Without any more information about what you need to do, it's tricky to give a more specific answer.

提交回复
热议问题