|
Quick Lists
|
|
Bug ID:
|
6879463
|
|
Votes
|
0
|
|
Synopsis
|
(file) DirectoryStream#iterator's remove method throws wrong exception when stream is closed
|
|
Category
|
java:classes_nio
|
|
Reported Against
|
|
|
Release Fixed
|
7(b75)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
|
|
Submit Date
|
05-SEP-2009
|
|
Description
|
"Once a directory stream is closed, all further method invocations on the iterator throw ConcurrentModificationException with cause ClosedDirectoryStreamException".
At this time (jdk7-b71), the remove method does not wrap the ClosedDirectoryStreamException in a CME.
Posted Date : 2009-09-05 17:43:23.0
A second issue is that next/hasNext throw ConcurrentModificationException(IllegalStateException) rather than the more specific ConcurrentModificationException(ClosedDirectoryStreamException) as specified.
Posted Date : 2009-10-07 20:43:46.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
The exceptions are not wrapped correctly - a small oversight in the implementation.
Posted Date : 2009-10-16 13:37:34.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |