Can annotations be used for code injection?

前端 未结 4 1619
南方客
南方客 2021-02-08 18:24

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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-08 18:57

    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...

提交回复
热议问题