RFR(S): JDK-8165500: TestJpsJar shouldn't jar all test.classpath directories

Daniel Fuchs daniel.fuchs at oracle.com
Thu Sep 15 12:37:31 UTC 2016


Hi Dmitry,

I wonder whether failures can be caused by adding
the classes in the wrong order...

If you have -cp a:b:c - the class loader will look
at a first, then b, then c.

But if you create a jar and adds a first, b second, and
c last, then it's equivalent to -cp c:b:a

Could there be an issue there?

best regards,

-- daniel



On 15/09/16 13:18, Dmitry Samersoff wrote:
> Everybody,
>
> Please, review the small fix.
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8165500/webrev.01/
>
> The problem:
>
> TestJpsJar attempts to copy all directories found in test.class.path
> into a single jar file.
>
> It's not necessary and could lead to intermittent ClassNotFound exceptions.
>
> Solution:
>
> Jar only a directory with required files.
>
> -Dmitry
>
>



More information about the serviceability-dev mailing list