New release DefaultFileSystemProviders
Michael Hall
mik3hall at gmail.com
Thu Jul 29 00:02:09 UTC 2021
Have changes been made to the new jdk17 and jdk18 releases for the jdk DefaultFileSystemProvider test?
I was asked to verify a bug against the latest releases for DefaultFileSystemProvider related code.
The code is not itself modular but includes some optional modular parts.
It gets one error if run without any modular and a different one if run with these modular parts.
That error with modular is…
Error: LinkageError occurred while loading main class us.hall.hp.common.LoaderLaunchStub
java.lang.ExceptionInInitializerError: null
At first I thought this was a native link error but after looking it up it seems more like a serialization type error where some current class doesn’t match a prior one?
So I am wondering if recent releases have made changes that make my older provider derived code incompatible?
These would of probably been indicated by changes made to the jdk DefaulFileSystemProvider test case to keep that working?
I don’t keep current with the latest development release sources or I could probably try comparing myself.
If helpful verbose class loading that seems to lead up to the error on OS/X shows…
[0.076s][info][class,load] jdk.internal.loader.NativeLibraries$NativeLibraryContext$$Lambda$5/0x000000080003c208 source: jdk.internal.loader.NativeLibraries
[0.076s][info][class,load] java.util.ArrayDeque$DeqIterator source: jrt:/java.base
[0.076s][info][class,load] jdk.internal.loader.NativeLibrary source: jrt:/java.base
[0.076s][info][class,load] jdk.internal.loader.NativeLibraries$NativeLibraryImpl source: jrt:/java.base
[0.077s][info][class,load] jdk.internal.loader.NativeLibraries$$Lambda$6/0x000000080003caa0 source: jdk.internal.loader.NativeLibraries
[0.078s][info][class,load] java.util.concurrent.ConcurrentHashMap$ValuesView source: jrt:/java.base
[0.078s][info][class,load] java.util.Enumeration source: jrt:/java.base
[0.078s][info][class,load] java.util.concurrent.ConcurrentHashMap$Traverser source: jrt:/java.base
[0.078s][info][class,load] java.util.concurrent.ConcurrentHashMap$BaseIterator source: jrt:/java.base
[0.078s][info][class,load] java.util.concurrent.ConcurrentHashMap$ValueIterator source: jrt:/java.base
[0.078s][info][class,load] java.nio.file.attribute.BasicFileAttributes source: jrt:/java.base
[0.078s][info][class,load] java.nio.file.attribute.PosixFileAttributes source: jrt:/java.base
[0.078s][info][class,load] sun.nio.fs.UnixFileAttributes source: jrt:/java.base
[0.078s][info][class,load] sun.nio.fs.UnixFileStoreAttributes source: jrt:/java.base
[0.078s][info][class,load] sun.nio.fs.UnixMountEntry source: jrt:/java.base
[0.078s][info][class,load] jdk.internal.loader.BuiltinClassLoader$5 source: jrt:/java.base
[0.079s][info][class,load] java.lang.module.ModuleReader source: jrt:/java.base
[0.079s][info][class,load] jdk.internal.module.SystemModuleFinders$SystemModuleReader source: jrt:/java.base
[0.079s][info][class,load] jdk.internal.module.ModulePatcher$PatchedModuleReader source: jrt:/java.base
[0.079s][info][class,load] jdk.internal.module.SystemModuleFinders$SystemImage source: jrt:/java.base
[0.079s][info][class,load] jdk.internal.jimage.ImageReaderFactory source: jrt:/java.base
[0.079s][info][class,load] java.nio.file.Paths source: jrt:/java.base
[0.079s][info][class,load] java.lang.ExceptionInInitializerError source: jrt:/java.base
From this it still almost seems to indicate a problem in loading a native library but I commented out the code that does that in the main class and the error remained.
More information about the nio-dev
mailing list