RFR: 7903020: Command line error: Incorrect output filename - can't write
Leonid Kuskov
lkuskov at openjdk.java.net
Mon Aug 30 18:42:47 UTC 2021
On Mon, 30 Aug 2021 02:18:16 GMT, Alexandre Iline <shurailine at openjdk.org> wrote:
>> This is the fix for https://bugs.openjdk.java.net/browse/CODETOOLS-7903020
>> The fix extends checking of files as existing as non-existing
>
> src/classes/com/sun/tdk/jcov/Merger.java line 1017:
>
>> 1015: template = opts.getValue(DSC_TEMPLATE);
>> 1016: Utils.checkFileCanBeNull(template, "template filename",
>> 1017: Utils.CheckOptions.FILE_EXISTS, Utils.CheckOptions.FILE_ISFILE, Utils.CheckOptions.FILE_CANREAD);
>
> is FILE_EXISTS a subset of FILE_CANREAD?
Yes, it is. Actually there are 20 places where this check is used.
Here FILE_CANREAD covers both EXISTS && ISFILE
-------------
PR: https://git.openjdk.java.net/jcov/pull/18
More information about the jcov-dev
mailing list