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

Cursor.setValue(V) does not set the curValue #49

Open
Neiko2002 opened this issue Jun 9, 2016 · 0 comments
Open

Cursor.setValue(V) does not set the curValue #49

Neiko2002 opened this issue Jun 9, 2016 · 0 comments

Comments

@Neiko2002
Copy link

I was iterating through a HashMap with a cursor and called the setValue(V) method to replace the current value. The new value was set in the vals[] array but did not replaced the curValue.

MutableLHashSeparateKVIntObjMapGO.java

        @Override
        public void setValue(V value) {
            if (curKey != free) {
                if (expectedModCount == modCount()) {
                    vals[index] = value;
                    if (vals != values) {
                        values[index] = value;
                    }
                } else {
                    throw new java.util.ConcurrentModificationException();
                }
            } else {
                throw new java.lang.IllegalStateException();
            }
        }
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