RFR: JDK-815440: JRT filesystem loaded by JDK8 with URLClassLoader is not closable since JDK-8147460
xueming.shen at oracle.com
Mon Apr 18 17:14:12 UTC 2016
Please help review the change for JDK-8154403
The direct trigger of the failure is that the test case is passing in a
null as parameter
"env" to create a new jrt filesystem. The nio spec specifies that it
will trigger NPE. The
existing implementation does not check the "null" and passes it directly
JrtFileSystem's constructor, in which the "null" is interpreted as "a
not closable jrt file
system" (A implementation detail).
The fix is to add the "null check" in the provider and pass in "empty
map" in the test case.
Alan, the original jrtfs implementation throws UOE in
is it better to just "silently" ignore the close request for the
"not-closable" jrt? I'm file with
either way though.
More information about the core-libs-dev