-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stacktrace Missing after adding Listener for a Cache instance #171
Comments
Sorry for the inconsistence and thanks for the report. I can reproduce the problem and just added your test case to the code base for future regression testing. Cause: Basically the API semantic needs to be consistent. Solution 1: We could consequently wrap into a Solution 2: Remove Solution 3: Don't wrap and make I tend to do solution 3, because I let that sit for a day or so, before I decide. Other ideas? Do you have any requirement that I may have overlooked? |
I corrected the problem and released an alpha update for verification. Thanks for reporting! |
Version of Cache2k:2.0.0.Final
How to reproduce:
testNpeWithoutListener
passes buttestNpeWithListener
failsExpectations: Both two cases pass, i.e. stacktrace within the callback function of
computeIfAbsent
should not be replaced by cachePossible Reason: Stacktrace of the
Exception
thrown by the client callback function is replaced herecache2k/cache2k-core/src/main/java/org/cache2k/core/BaseCache.java
Line 225 in 8a0024c
The text was updated successfully, but these errors were encountered: