-
Notifications
You must be signed in to change notification settings - Fork 401
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
Int2IntHashMap methods don't work when using map via interface #98
Comments
You shouldn't need to override |
Thanks for the bug report. |
mjpt777
added a commit
that referenced
this issue
May 11, 2017
@RichardWarburton, @mjpt777 many thanks for the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some methods of Int2IntHashMap don't actually override corresponding methods of java.util.Map. Due to this fact we can't expose Int2IntHashMap as a Map<Integer, Integer> to external code.
computeIfAbsentUsingImplementation() works well, but computeIfAbsentUsingInterface() fails, because it uses java.util.Map.computeIfAbsent(...) which is not overridden.
Agrona 0.9.3, JDK 8
The text was updated successfully, but these errors were encountered: