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

Build fails to compile FXML unit tests after fix for RT-32859

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 8
    • 8
    • javafx
    • None

      The unit tests were not updated in conjunction with RT-32859 so they no longer compile:

      $ gradle test
      ...
      :fxml:compileTestJava
      [ant:javac] C:\Users\kcr\javafx\8-kcr-gfx\jfx\rt\modules\fxml\src\test\java\com\sun\javafx\fxml\builder\ProxyBuilderTest.java:209: error: cannot find symbol
      [ant:javac] pb = new ProxyBuilder(ClassWithMixedConstructors.class);
      [ant:javac] ^
      [ant:javac] symbol: class ClassWithMixedConstructors
      [ant:javac] location: class ProxyBuilderTest
      [ant:javac] C:\Users\kcr\javafx\8-kcr-gfx\jfx\rt\modules\fxml\src\test\java\com\sun\javafx\fxml\builder\ProxyBuilderTest.java:215: error: cannot find symbol
      [ant:javac] ClassWithMixedConstructors result = (ClassWithMixedConstructors) pb.build();
      [ant:javac] ^
      [ant:javac] symbol: class ClassWithMixedConstructors
      [ant:javac] location: class ProxyBuilderTest
      [ant:javac] C:\Users\kcr\javafx\8-kcr-gfx\jfx\rt\modules\fxml\src\test\java\com\sun\javafx\fxml\builder\ProxyBuilderTest.java:215: error: cannot find symbol
      [ant:javac] ClassWithMixedConstructors result = (ClassWithMixedConstructors) pb.build();
      [ant:javac] ^
      [ant:javac] symbol: class ClassWithMixedConstructors
      [ant:javac] location: class ProxyBuilderTest
      [ant:javac] Note: C:\Users\kcr\javafx\8-kcr-gfx\jfx\rt\modules\fxml\src\test\java\com\sun\javafx\fxml\builder\ProxyBuilderTest.java uses unchecked or unsafe operations.
      [ant:javac] Note: Recompile with -Xlint:unchecked for details.
      [ant:javac] 3 errors
      :fxml:compileTestJava FAILED

      FAILURE: Build failed with an exception.

            ekrejcir Eva Krejčířová (Inactive)
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: