-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b22
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8063732 | 8u45 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8049467 | 8u40 | Mike Duigou | P2 | Resolved | Fixed | b01 |
JDK-8051658 | 8u31 | Mike Duigou | P2 | Resolved | Fixed | b01 |
JDK-8050872 | 8u25 | Mike Duigou | P2 | Closed | Fixed | b08 |
JDK-8070183 | emb-8u47 | Unassigned | P2 | Resolved | Fixed | team |
JDK-8058081 | emb-8u26 | Mike Duigou | P2 | Resolved | Fixed | b23 |
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.
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.
- backported by
-
JDK-8049467 CheckedQueue.offer calls wrong method on wrapped queue
-
- Resolved
-
-
JDK-8051658 CheckedQueue.offer calls wrong method on wrapped queue
-
- Resolved
-
-
JDK-8058081 CheckedQueue.offer calls wrong method on wrapped queue
-
- Resolved
-
-
JDK-8063732 CheckedQueue.offer calls wrong method on wrapped queue
-
- Resolved
-
-
JDK-8070183 CheckedQueue.offer calls wrong method on wrapped queue
-
- Resolved
-
-
JDK-8050872 CheckedQueue.offer calls wrong method on wrapped queue
-
- Closed
-
(1 backported by)