JDK-8174763 : Resources are not copied to the shims directory causing unit test failures
  • Type: Bug
  • Component: javafx
  • Sub-Component: build
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-02-10
  • Updated: 2017-02-14
  • Resolved: 2017-02-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Fixed
Related Reports
Relates :  
Description
The classes are copied to the shims directory, but the resources are not. This means that if the resources are not in the boot JDK we are using to run the tests, then they won't be found and the test will fail. This bug was discovered after the fix for JDK-8169286 went in, but would cause problems any time a new resource is added that a test depends upon.

To reproduce this:

1. build FX from tip of 9-dev

2. build JDK using those bits

3. build FX using the just-built JDK

4. Run the system tests using the above-built JDK as follows:

gradle -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test

All of the tests that use resources in the monocle package will fail.
Comments
Changeset: acc97304d9dd Author: ddhill Date: 2017-02-14 14:31 -0500 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/acc97304d9dd 8174763: Resources are not copied to the shims directory causing unit test failures Reviewed-by: kcr ! build.gradle
14-02-2017

The .3 version looks good. All tests now pass and I verified that the shims contains everything it should. +1
14-02-2017

updated: http://cr.openjdk.java.net/~ddhill/8174763.3/
14-02-2017

webrev: http://cr.openjdk.java.net/~ddhill/8174763/
10-02-2017