UTBotJava
UTBotJava copied to clipboard
Introduce another approach to patch annotations
Description
Some annotations patching in runtime is required for Spring projects. For example, to construct a context for concrete execution.
Currently we use ConfigurationManager.patchAnnotation method, put it is not very reliable because of using sun.relect that may be JDK specific and is not compatible with the version of current user.
The proper way is to apply it in instrumentation during transformation by adding a specific visitor. Sergey Pospelov will provide us further instructions.