After the fix for https://bugs.openjdk.org/browse/JDK-8307536, when copying the file to the cache directory, there might be an scenario where the target file exists but has a 0 length, or any length other that the actual resource length, or with the right length but wrong content.
Any of these situations would probably cause an error, and this need to be investigated, providing the necessary tests
Any of these situations would probably cause an error, and this need to be investigated, providing the necessary tests