Gong Dewei
Gong Dewei
And intercept constructor by `Advice` also create a private constructor with helper class, same problem as `MethodDelegation`: ``` public class BizFoo { private String name; public BizFoo() { BizFoo bizFoo...
> The second agent with `Advice` should declare `disableClassFormatChanges()`, I think that should fix it. Something not expected: Intercept constructor with `Advice` in first agent, and then intercept method with...
The above tests already use latest version: ```xml net.bytebuddy byte-buddy 1.14.4 net.bytebuddy byte-buddy-agent 1.14.4 ```
@raphw I found one way! The bytecode of the helper class can be successfully obtained in an asynchronous thread, avoiding the nested call the transformer. The reason is not clear....
Getting bytecode in asynchronous threads doesn't seem to be perfect. Is there a better way?
> ```java > public Resolution locate(String name) throws IOException { > Future future = executorService.submit(() -> getResolution(name)); > try { > return future.get(); > } catch (Exception e) { >...
@raphw > That's non trivial, as normal transformations might be conflicting. For example, if a given value was supposed to be returned, what of the two transformers should win? Do...
@raphw I found that `Advice` can do transform many times on same method, but there's a problem: How to skip the execution of the original method according to the condition...
I came across a code snippet that lacks elegance and appears rather peculiar to do it. `@Advice.OnMethodEnter(skipOn=...) ` seems peculiar, or using it incorrectly? ```java public class AdviceSkipOnTest { public...
调试代码发现: 此问题与检查 telnet端口的功能有关。 macOS jdk 1.7 TelnetConsole socket 连接本地不存在的端口3658时没有报错,被认为是连接成功了,后面执行`session`命令等待超时。