Hello dconneely, your friendly Jenkins core maintainer here. I was scanning through the corpus of Jenkins plugins looking for potential incompatibilities and noticed that https://github.com/jenkinsci/dimensionsscm-plugin/blob/6e4ad4a5f6bb38d510c7df08a1bbe7e691813df1/src/main/java/hudson/plugins/dimensionsscm/DimensionsAPI.java is Serializable and contains several fields that are part of the java.util.concurrent package. Based on my experience testing the Pipeline plugins on Java 17, I suspect this may fail if XStream tries to serialize this class to XML, because we (intentionally) do not have Add-Opens directives for java.util.concurrent in our configuration. Would you be able to do an end-to-end test of this plugin on the latest Jenkins weekly release (2.355 or later) and Java 17? If all is fine, then this ticket can be closed. If an exception is encountered please show me the stack trace and I can help make this plugin compatible. Note that we are going to be officially supporting Java 17 starting with this week's 2.346.1 LTS release.

          [JENKINS-68793] Test Dimensions SCM with Java 17

          Thanks for the heads-up, basil: an end-to-end test seemed OK on Java 17.
          I think DimensionsAPI isn't actually serialized by XStream.
          The whole AtomicLong/ConcurrentHashMap mess is inherited code, and needs revisiting...
          Thanks again, and if you see anything else, please do let me know.

          David Conneely added a comment - Thanks for the heads-up, basil : an end-to-end test seemed OK on Java 17. I think DimensionsAPI isn't actually serialized by XStream. The whole AtomicLong/ConcurrentHashMap mess is inherited code, and needs revisiting... Thanks again, and if you see anything else, please do let me know.

          Basil Crow added a comment -

          Thank you!

          Basil Crow added a comment - Thank you!

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: