UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

Introduce another approach to patch annotations

Open EgorkaKulikov opened this issue 3 years ago • 0 comments

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.

EgorkaKulikov avatar Jun 30 '23 16:06 EgorkaKulikov