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

Suppress AnonymousClassWarnings for hudson.FilePath$2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • core
    • Jenkins 2.235

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: