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

groovy parameter expansion splat operator (*) causes exception

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None

      def foo(a, b) {
       echo a
       echo b
      }
      
      def bar = [1, 2]
      foo(*bar)
      
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      General error during canonicalization: java.lang.UnsupportedOperationException
      
      java.lang.UnsupportedOperationException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      ...
      

          [JENKINS-43520] groovy parameter expansion splat operator (*) causes exception

          Stephen Chu added a comment -

          Any quick update? I am seeing this as well.

          Stephen Chu added a comment - Any quick update? I am seeing this as well.

          I'm still running into this issue with jenkins 2.121.1

          philip champon added a comment - I'm still running into this issue with jenkins 2.121.1

            Unassigned Unassigned
            jhoblitt Joshua Hoblitt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: