Loading... (original) (raw)
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
In java.util.Collections.CheckedQueue, the offer() method calls the add() method of the wrapped queue instead of offer(). They do not do the same thing!
This is the offending code:
public boolean offer(E e) {
typeCheck(e);
return add(e);
}
Should be:
public boolean offer(E e) {
typeCheck(e);
return queue.offer(e);
}
REPRODUCIBILITY :
This bug can be reproduced always.