Skip to content

IBigQueue.applyForEach does not work #45

@pshterev

Description

@pshterev

IBigQueue.applyForEach does not work - my iterator is never called with any element. No errors are thrown it just behaves as if the queue is empty which is definitely not - I tried queue and dequeue items also print the size and isEmpty just before applyForEach. I think the problem is here:

for (long i = index; i < this.innerArray.size(); i++) {
iterator.forEach(this.innerArray.get(i));
}

and more specifically it seems that innerArray.size() could return a negative value. I see it's not used on other places to maybe IBigArray.size() is faulty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions