JDK-8142443 : Error compiling generated web classes with gradle 2.8
  • Type: Bug
  • Component: javafx
  • Sub-Component: build
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-11-10
  • Updated: 2020-01-31
  • Resolved: 2015-11-11
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 8 JDK 9
8u92Fixed 9Fixed
Related Reports
Blocks :  
Description
We get a compilation error in :web:compileGenerated task using gradle 2.8 when building the JavaFX sdk with "-PCOMPILE_WEBKIT=true", which builds the native webkit classes. The reason for this that the classpath used to compile the generated classes does not include the classes from the web project itself. It looks like we are relying on a behavior of earlier versions of gradle, that included them without our having to specify them.

The fix will be to explicitly specify the web classes on the classpath when compiling the generated sources.
Comments
This needs to be backported to 8u to keep the WebView build in sync.
02-12-2015

http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/361757ecc41b
11-11-2015

diff --git a/build.gradle b/build.gradle --- a/build.gradle +++ b/build.gradle @@ -2624,7 +2624,8 @@ into "$gensrcDir/com/sun/webkit/dom" } } - classpath = files(project(":graphics").sourceSets.main.output) // for JSObject + classpath = files(project.sourceSets.main.output.classesDir) + + files(project(":graphics").sourceSets.main.output) // for JSObject source gensrcDir destinationDir = file("$buildDir/classes/main") }
11-11-2015