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

Suppress AnonymousClassWarnings for hudson.FilePath$2

    XMLWordPrintable

Details

    Description

      I can see on  logs:

      2020-08-27 18:28:43.548+0000 [id=1840]	WARNING	o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class hudson.FilePath$2 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.235.5-cb-1.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      

      We have to create an inner static class to take over the adhoc class created on https://github.com/jenkinsci/jenkins/blob/84153f66d2e93df4d9f5c457871e24a8cbf1f016/core/src/main/java/hudson/FilePath.java#L2028

       

      Attachments

        Issue Links

          Activity

            mramonleon Ramon Leon created issue -
            mramonleon Ramon Leon made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            mramonleon Ramon Leon made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            mramonleon Ramon Leon added a comment - PR:  https://github.com/jenkinsci/jenkins/pull/4921
            mramonleon Ramon Leon made changes -
            Remote Link This issue links to "PR #4921 (Web Link)" [ 25720 ]
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate
            foundation_security_members CloudBees Foundation Security made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate 2.249.2-fixed
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              mramonleon Ramon Leon
              mramonleon Ramon Leon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: