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

Suppress AnonymousClassWarnings for hudson.FilePath$2

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

      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

       

          [JENKINS-63563] Suppress AnonymousClassWarnings for hudson.FilePath$2

          Ramon Leon created issue -
          Ramon Leon made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Ramon Leon made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Ramon Leon added a comment -

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

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

              Created:
              Updated:
              Resolved: