Java Reflection and the pain in Refactoring

后端 未结 9 1659
清歌不尽
清歌不尽 2021-02-08 14:25

Java Reflection provides a mechanism to introspect an Object at runtime. No second thoughts, this is a great feature, but it breaks all the Refactoring conventions!

Ther

9条回答
  •  梦毁少年i
    2021-02-08 15:07

    What about taggin classes, methods, fields you know are accessed by reflection? The IDE could warn you when you change their names.

提交回复
热议问题