Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7361

Java 9,10,11 support for CXFAuthenticator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1.11
    • None
    • None
    • None
    • Unknown

    Description

      with java 9, Authenticator getDefault() should be used instead of field.get() (setAccessible fails) + unsafe should be used to define the class instead of the failing ClassLoader.defineClass.

      All that with reflection of course and in fallback mode probably since for java 8 it is better to not do it (or it is not available - getDefault() typically).

      Workaround ATM is to call CXFAuthenticator.addAuthenticator(); manually and ignore the exception, it initializes the instance then it doesn't fail but the feature is lost until it gets fixed as mentionned before.

      Attachments

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              romain.manni-bucau Romain Manni-Bucau
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: