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

Transform anonymous classes sent over remoting into non anonymous classes

    • Evergreen - Milestone 1

      Issue

      The Git plugin triggers the following warnings currently:

      Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 in file:/evergreen/jenkins/var/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      

      And

      Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/evergreen/jenkins/var/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      

      Expected

      The anonymous class should be extracted to a full blown one so that this warning (and more importantly remoting works as fine as possible) goes away.

      Thanks!

          [JENKINS-53307] Transform anonymous classes sent over remoting into non anonymous classes

          Baptiste Mathus created issue -
          Baptiste Mathus made changes -
          Link New: This issue relates to JENKINS-53251 [ JENKINS-53251 ]
          Baptiste Mathus made changes -
          Summary Original: Transform o.j.p.g.RemoteGitImpl$CommandInvocationHandler$1 into a non anonymous class New: Transform anonymous classes sent over remoting into non anonymous classes
          Baptiste Mathus made changes -
          Description Original: h3. Issue

          The Git plugin triggers the following warnings currently:

          {noformat}
          Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 in file:/evergreen/jenkins/var/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          {noformat}

          h3. Expected

          The anonymous class should be extracted to a full blown one so that this warning (and more importantly remoting works as fine as possible) goes away.

          Thanks!
          New: h3. Issue

          The Git plugin triggers the following warnings currently:

          {noformat}
          Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 in file:/evergreen/jenkins/var/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          {noformat}

          And

          {noformat}
          Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/evergreen/jenkins/var/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          {noformat}

          h3. Expected

          The anonymous class should be extracted to a full blown one so that this warning (and more importantly remoting works as fine as possible) goes away.

          Thanks!
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-52948 [ JENKINS-52948 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Baptiste Mathus made changes -
          Component/s New: git-client-plugin [ 17423 ]
          Component/s Original: git-plugin [ 15543 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            markewaite Mark Waite
            batmat Baptiste Mathus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: