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

groovy parameter expansion splat operator (*) causes exception

XMLWordPrintable

    • 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)
      ...
      

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

              Created:
              Updated:
              Resolved: