RFR: 8048020 - Regression on java.util.logging.FileHandler
Alan.Bateman at oracle.com
Fri Jul 4 17:58:46 UTC 2014
On 04/07/2014 18:25, Daniel Fuchs wrote:
> Given that nothing is going to be written to the file then maybe I
> don't need APPEND.
> I just don't want the call to FileChannel.open() to truncate the file.
APPEND should be harmless here, just not needed.
>> Also you catch FileNotFoundException (which is not thrown by
> oh? What will FileChannel.open throw if the file does not exist then?
> Is there another
> exception? Or do you mean it's not possible to know why
> FileChannel.open fails?
> That would be bad...
All the specific file system exceptions are defined in java.nio.file but
it's not clear to me that you only want to handle NoSuchFileException.
Don't you want to handle cases where the zombie file can't be opened for
other reasons (file permission issues for example that would manifest as
More information about the core-libs-dev