RFR: JDK-8249289: Exception thrown when --temp points to non-existant directory

Alexey Semenyuk alexey.semenyuk at oracle.com
Wed Jul 15 22:09:16 UTC 2020


Andy,

Stream.close() call is missing on the result of Files.list() call.
I'd also replace Files.list(root) with Files.walk(root, 1) call to 
eliminate diving in directory tree.

- Alexey

On 7/15/2020 2:37 PM, Andy Herrick wrote:
> Please review the jpackage fix for issue [1] at [2].
>
> This fixes the regression in JDK16 which caused exception when an 
> empty directory was used int the --temp jpackage option, and added to 
> the existing test.
>
> [1] - https://bugs.openjdk.java.net/browse/JDK-8249289
>
> [2[ - http://cr.openjdk.java.net/~herrick/8249289/webrev.02/
>
> /Andy
>



More information about the core-libs-dev mailing list