Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55233

email-ext: PowerMock is not compatible with Java 11

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • Jenkins 2.155
      Java 11
      PCT
    • 2.64

      Current version of PowerMock used for testing is not compatible with Java 11.  So tests are failing with 

      Caused by: java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl loaded by org.powermock.core.classloader.MockClassLoader @7cd1ec54 cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl 

      Updating Parent POM to 3.30 to benefit from new versions of the libraries should be sufficient.

          [JENKINS-55233] email-ext: PowerMock is not compatible with Java 11

          Adrien Lecharpentier created issue -
          Adrien Lecharpentier made changes -
          Epic Link New: JENKINS-51805 [ 191255 ]
          Adrien Lecharpentier made changes -
          Link New: This issue depends on JENKINS-55098 [ JENKINS-55098 ]
          Adrien Lecharpentier made changes -
          Description Original: Current version of PowerMock used for testing is not compatible with Java 11.  So tests are failing with 
          {noformat}
          Caused by: java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl loaded by org.powermock.core.classloader.MockClassLoader @7cd1ec54 cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl {noformat}
          New: Current version of PowerMock used for testing is not compatible with Java 11.  So tests are failing with 
          {noformat}
          Caused by: java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl loaded by org.powermock.core.classloader.MockClassLoader @7cd1ec54 cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl {noformat}
          Updating Parent POM to {{3.30}} to benefit from new versions of the libraries should be sufficient.
          Adrien Lecharpentier made changes -
          Labels Original: java11 java11-devtools-compatibility New: java11 java11-compatibility
          Oleg Nenashev made changes -
          Assignee Original: David van Laatum [ davidvanlaatum ] New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ] New: David van Laatum [ davidvanlaatum ]
          Oleg Nenashev made changes -
          Summary Original: PowerMock is not compatible with Java 11 New: email-ext: PowerMock is not compatible with Java 11
          Adrien Lecharpentier made changes -
          Remote Link New: Cette demande est liée à "email-ext#PR-175 (Lien Web)" [ 22119 ]
          Adrien Lecharpentier made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Adrien Lecharpentier made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

            alecharp Adrien Lecharpentier
            alecharp Adrien Lecharpentier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: