ppkarwasz commented on issue #3284:
URL: 
https://github.com/apache/logging-log4j2/issues/3284#issuecomment-2553841456

   > I’m not sure why it’s not showing the proxy object here. However, it 
definitely doesn’t enter the map’s computeIfAbsent method. Could you teach me 
how to check if it’s being proxied? Thank you.
   
   JMockit does not create proxy objects, but it instruments (modifies) the 
classes that are loaded by the JVM. So the objects are instances of the same 
classes as declared, but the bytecode of the classes is modified.
   
   You can see in the debugger that `Map.computeIfAbsent()` is redirected to 
`mockit.internal.expectations.mocking.MockedBridge.invoke()`, which ends up 
returning `null`. This is probably a bug in JMockito, try reporting it there. 
Since `Map.computeIfAbsent()` is a default method, my guess is that JMockito 
fails to support default methods.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to