****** CALL FLOWS FOR ORIGINAL TEST ********

CleanerImpl:: ENTER
PhantomCleanable:: referent java.lang.ref.Cleaner and cleaner java.lang.ref.Cleaner
PhantomCleanable:: referent java.io.FileDescriptor and cleaner java.lang.ref.Cleaner
JarURLConnection:: created for jarFileURL file:C:/Temp/jrt-fs.jar
URLJarFile::getJarFile - ENTER file:C:/Temp/jrt-fs.jar
ZipFile: ENTER - creating ClanableResource with zip file C:\Temp\jrt-fs.jar
PhantomCleanable:: referent sun.net.www.protocol.jar.URLJarFile and cleaner java.lang.ref.Cleaner
PhantomCleanableRef:: EXIT
PhantomCleanable:: referent sun.nio.fs.NativeBuffer and cleaner java.lang.ref.Cleaner
PhantomCleanableRef:: EXIT
PhantomCleanable:: referent sun.nio.fs.NativeBuffer and cleaner java.lang.ref.Cleaner
PhantomCleanableRef:: EXIT
PhantomCleanable:: referent java.io.FileDescriptor and cleaner java.lang.ref.Cleaner
CleanableResource: ENTER - cleaner created for zip file C:\Temp\jrt-fs.jar and file jrt-fs.jar
ZipFile: ENTER
java.lang.Exception: Stack trace
	at java.base/java.lang.Thread.dumpStack(Thread.java:1379)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:169)
	at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)
	at java.base/sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:104)
	at java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:73)
	at java.base/sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:94)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:129)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:159)
	at java.base/java.net.URL.openStream(URL.java:1167)
	at JarFileCloseTest.testWithJarFileUrl(JarFileCloseTest.java:57)
	at JarFileCloseTest.main(JarFileCloseTest.java:20)
ZipFile: ENTER - name == jrt-fs.jar mode == 1
JarFile: created for jrt-fs.jar
URLJarFile::getEntry - ENTER name == META-INF/MANIFEST.MF
ZipFile.getInputStream: ENTER 
java.lang.Exception: Stack trace
	at java.base/java.lang.Thread.dumpStack(Thread.java:1379)
	at java.base/java.util.zip.ZipFile.getInputStream(ZipFile.java:370)
	at java.base/java.util.jar.JarFile.getBytes(JarFile.java:802)
	at java.base/java.util.jar.JarFile.checkForSpecialAttributes(JarFile.java:1009)
	at java.base/java.util.jar.JarFile.isMultiRelease(JarFile.java:391)
	at java.base/java.util.jar.JarFile.getEntry(JarFile.java:510)
	at java.base/sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:135)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:141)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:159)
	at java.base/java.net.URL.openStream(URL.java:1167)
	at JarFileCloseTest.testWithJarFileUrl(JarFileCloseTest.java:57)
	at JarFileCloseTest.main(JarFileCloseTest.java:20)
ZipFile.getInputStream: DEFLATED create ZipFileInflaterInoutStream 
PhantomCleanable:: referent java.util.zip.Inflater and cleaner java.lang.ref.Cleaner
PhantomCleanableRef:: EXIT
PhantomCleanable:: referent java.util.zip.ZipFile$ZipFileInflaterInputStream and cleaner java.lang.ref.Cleaner
PhantomCleanableRef:: EXIT
ZipFileInflaterInputStream: ENTER Cleaner created
ZipFileInflaterInputStream: ENTER Cleaner type == jdk.internal.ref.CleanerImpl$PhantomCleanableRef
ZipFile.getInputStream: DEFLATED ZipFileInflaterIS added 
ZipFile.getInputStream: EXIT DEFLATED 
ZipFileInflaterInputStream.close: ENTER thread main : 1
java.lang.Exception: Stack trace
	at java.base/java.lang.Thread.dumpStack(Thread.java:1379)
	at java.base/java.util.zip.ZipFile$ZipFileInflaterInputStream.close(ZipFile.java:460)
	at java.base/java.util.jar.JarFile.getBytes(JarFile.java:818)
	at java.base/java.util.jar.JarFile.checkForSpecialAttributes(JarFile.java:1009)
	at java.base/java.util.jar.JarFile.isMultiRelease(JarFile.java:391)
	at java.base/java.util.jar.JarFile.getEntry(JarFile.java:510)
	at java.base/sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:135)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:141)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:159)
	at java.base/java.net.URL.openStream(URL.java:1167)
	at JarFileCloseTest.testWithJarFileUrl(JarFileCloseTest.java:57)
	at JarFileCloseTest.main(JarFileCloseTest.java:20)
ZipFileInflaterInputStream.close: remove ZipFileInflaterInputStream from istreams
ZipFileInflaterInputStream.close: invoke cleanable.clean()
PhantomCleanable::clean - ENTER 
PhantomCleanable::clean - cleaner removed 
PhantomCleanableRef::performCleanup action == java.util.zip.ZipFile$InflaterCleanupAction
PhantomCleanableRef::performCleanup action in thread 1
InflaterCleanupAction::run - ENTER
CleanableResource::releaseInflater - ENTER
InflaterCleanupAction::run - EXIT
ZipFileInflaterInputStream.close: EXIT 
JarURLConnection::getInputStream - creating JarURLInputStream 
ZipFile.getInputStream: ENTER 
java.lang.Exception: Stack trace
	at java.base/java.lang.Thread.dumpStack(Thread.java:1379)
	at java.base/java.util.zip.ZipFile.getInputStream(ZipFile.java:370)
	at java.base/java.util.jar.JarFile.getInputStream(JarFile.java:839)
	at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:172)
	at java.base/java.net.URL.openStream(URL.java:1167)
	at JarFileCloseTest.testWithJarFileUrl(JarFileCloseTest.java:57)
	at JarFileCloseTest.main(JarFileCloseTest.java:20)
ZipFile.getInputStream: DEFLATED create ZipFileInflaterInoutStream 
PhantomCleanable:: referent java.util.zip.ZipFile$ZipFileInflaterInputStream and cleaner java.lang.ref.Cleaner
PhantomCleanableRef:: EXIT
ZipFileInflaterInputStream: ENTER Cleaner created
ZipFileInflaterInputStream: ENTER Cleaner type == jdk.internal.ref.CleanerImpl$PhantomCleanableRef
ZipFile.getInputStream: DEFLATED ZipFileInflaterIS added 
ZipFile.getInputStream: EXIT DEFLATED 
jar file opened
is is instance of sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream
JarURLInputStream.close: ENTER
ZipFileInflaterInputStream.close: ENTER thread main : 1
java.lang.Exception: Stack trace
	at java.base/java.lang.Thread.dumpStack(Thread.java:1379)
	at java.base/java.util.zip.ZipFile$ZipFileInflaterInputStream.close(ZipFile.java:460)
	at java.base/java.io.FilterInputStream.close(FilterInputStream.java:179)
	at java.base/sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream.close(JarURLConnection.java:114)
	at JarFileCloseTest.testWithJarFileUrl(JarFileCloseTest.java:61)
	at JarFileCloseTest.main(JarFileCloseTest.java:20)
ZipFileInflaterInputStream.close: remove ZipFileInflaterInputStream from istreams
ZipFileInflaterInputStream.close: invoke cleanable.clean()
PhantomCleanable::clean - ENTER 
PhantomCleanable::clean - cleaner removed 
PhantomCleanableRef::performCleanup action == java.util.zip.ZipFile$InflaterCleanupAction
PhantomCleanableRef::performCleanup action in thread 1
InflaterCleanupAction::run - ENTER
CleanableResource::releaseInflater - ENTER
InflaterCleanupAction::run - EXIT
ZipFileInflaterInputStream.close: EXIT 
delete the jar file
java.nio.file.FileSystemException: C:\Temp\jrt-fs.jar: The process cannot access the file because it is being used by another process
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:274)
	at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
	at java.base/java.nio.file.Files.delete(Files.java:1146)
	at JarFileCloseTest.testWithJarFileUrl(JarFileCloseTest.java:65)
	at JarFileCloseTest.main(JarFileCloseTest.java:20)
PhantomCleanable::clean - ENTER 
PhantomCleanable::clean - cleaner removed 
PhantomCleanableRef::performCleanup action == sun.nio.fs.NativeBuffer$Deallocator
PhantomCleanableRef::performCleanup action in thread 1
PhantomCleanable::clean - ENTER 
PhantomCleanable::clean - cleaner removed 
PhantomCleanableRef::performCleanup action == sun.nio.fs.NativeBuffer$Deallocator
PhantomCleanableRef::performCleanup action in thread 1