Support for jrt-fs.jar in JDK 7 would be very helpful in allowing FindBugs to run under Java 9
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Mon Nov 17 19:36:02 UTC 2014
2014/11/16 9:26 -0800, alan.bateman at oracle.com:
> ...
>
> If you mean the suggestion in the end of my mail then it was just
> pointing out that it wouldn't be hard to create a jrt:/ provider that
> provides the same interface for runtime images that internally have
> rt.jar, resources.jar, jsse.jar etc. This has the potential to allow the
> same API be used over a wider range of major releases than is currently
> proposed in the JEP.
Paths in a jrt: filesystem include module names, but JDK 7 and JDK 8
don't have modules, so a jrt: provider on those versions would either
have to try to map class and resource files to modules (ugh), or else
omit the module name, or else use some artificial name ("default",
"boot", whatever, ...). In the latter two cases, tools that use the
jrt: filesystem will have to do something different on JDK >= 9 vs.
JDK < 9, so I'm not sure we'd be helping them much by providing jrt:
views of older releases. It'd be less work for all involved if they
just keep their current rt.jar/tools.jar-reading code.
- Mark
More information about the jigsaw-dev
mailing list