Illegal access to private "size" field of ArrayList from build.gradle

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jfx17
    • Affects Version/s: jfx11, 8, jfx17
    • Component/s: javafx

        The fetchExternalTools() method in build.gradle accesses ArrayList.size instead of ArrayList.size() in two places. This is clearly a bug, but Groovy is happy to provide access to that field via reflection.

        Starting in JDK 16, with default strong encapsulation, this no longer works, so we need to fix this before switching, and we really should fix it anyway, since accessing the internal field is both unnecessary and wrong.

              Assignee:
              Kevin Rushforth
              Reporter:
              Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: