| [#207] | project: api | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Vincent | Matthias | fixed | 2003-10-21 15:11:44.0 | |
| subject | Queue | |||
| code |
object queueTest with Executable {
val q = new collection.mutable.Queue[int];
q.enqueue(42);
System.out.println("output = " + q.dequeue);
q.enqueue(89);
System.out.println("output = " + q.dequeue);
}
|
|||
| what happened | At run time: output = 42 Exception in thread "main" java.lang.Error: queue empty ... |
|||
| what expected | Execution without exception. | |||
| [back to overview] | ||||
| Vincent edited on 2003-10-22 10:50:33.0 |
| The "dequeue" method didn't decrease the length of the queue. |