Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310654

validateSourceSets task fails on javafx/scene/package-info.java after JDK-8180066

    XMLWordPrintable

Details

    • b24

    Description

      Steps to reproduce:

      $ gradle :graphcs:test
      ...
      validating packages for modules/javafx.graphics/src/main/java
      *** ERROR: File location <modules/javafx.graphics/src/main/java/javafx/scene/package-info.java> does not match package name <example>

      FAILURE: Build failed with an exception.

      * Where:
      Build file 'build.gradle' line: 266

      * What went wrong:
      Execution failed for task ':graphics:validateSourceSets'.
      > FAIL: Package validation failed

      The converted package-info.java file has an example with "package example;", which is being picked up as the package for that file by the (too simplistic) parsing done by validateSourceSets in build.gradle.

      Attachments

        Issue Links

          Activity

            People

              kcr Kevin Rushforth
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: