Skip to content
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

Class CacheRegionKey is doubled #1976

Open
fsilvani92 opened this issue Jun 1, 2023 · 0 comments
Open

Class CacheRegionKey is doubled #1976

fsilvani92 opened this issue Jun 1, 2023 · 0 comments

Comments

@fsilvani92
Copy link

fsilvani92 commented Jun 1, 2023

When debugging caching issues, I stumbled upon TransactionalCache line 419. There, CacheRegionKeys are filtered out and their underlying key values should be returned. When executing the method I still got keys of a class "CacheRegionKey".

It turns out, there are 2 classes CacheRegionKey: One as a sub class of TranasactionalCache and one is a standalone class. The sub class is older being introduced with 4.0 while the standalone class was introduced in 4.2.

Both classes have the same serialVersionUID = -213050301938804468L and the same attributes in the same order, so I suspect this is an errror. The sub class has two additional get-methods, so it looks like there was a merge-conflict, where one branch moved the class into a new file and another branch added these methods and during merge it was decided to keep both classes, instead of moving the new methods to the moved class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant