Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1569

Illegal access warnings with Java 9

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.4.0
    • Fix Version/s: 2.5.0-rc1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Java 9.0.1

      Description

      When doing an ant ivy:resolve with Java 9, an illegal access warning is logged:

      resolve:
      [ivy:retrieve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
      [ivy:retrieve] :: loading settings :: file = common/conf/ivysettings.xml
      [ivy:retrieve] :: resolving dependencies :: XXXX
      [ivy:retrieve] confs: [compile, runtime, ext]
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.ivy.util.url.IvyAuthenticator (file:common/lib/ivy-2.3.0.jar) to field java.net.Authenticator.theAuthenticator
      WARNING: Please consider reporting this to the maintainers of org.apache.ivy.util.url.IvyAuthenticator
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release

      There is a workaround which is to use --add-opens command line options to the invocation of java but unfortunately this cannot be done when using ivy in Ant. Please revise the code and fix this . Many thanks in advance!

        Attachments

          Activity

            People

            • Assignee:
              twogee Gintas Grigelionis
              Reporter:
              wvreeven Wouter van Reeven
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: