Can annotations be used for code injection?

前端 未结 4 505
忘了有多久
忘了有多久 2021-02-08 18:08

I realise that this might be a question that has been asked and answered, but please bear with me.

I want to know if it is possible to use annotations to inject code int

4条回答
  •  无人及你
    2021-02-08 18:50

    It is not supported to modify code at compile time but it seems to be possible by using non-supported javac-internal APIs, here is a post referencing the hanbuy-panno solution with also a link to the code...

提交回复
热议问题