Xbootclasspath/a adds CWD to boot class path

Alan Bateman Alan.Bateman at oracle.com
Tue Sep 26 12:01:35 UTC 2017

On 26/09/2017 12:18, David Holmes wrote:
> I've re-read the discussion and related bugs. As I understand it what 
> you see now is expected and reflects what happens in 7 and 8. What 
> should see is that the empty path elements causes CWD to be included 
> for resource lookup, but not for class lookup. That inconsistency was 
> flagged for fixing in 7, deferred to 9, rectified early on, but then 
> reverted when the module system was integrated - with the eventual fix 
> re-appearing in JDK 10.
Right except there is a small regression in JDK 9 where the boot loader 
will locate resources in the working directory when using 
-Xbootclasspath/a. It's fixed in jdk10/master and Mandy had added a good 
set of tests via JDK-8185541 to ensure that inconsistencies going come back.


More information about the core-libs-dev mailing list