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

Unclassified error when using Groovy struct constructors

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      new Class(field: value) syntax does not work from the sandbox.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
            http://jenkins-ci.org/commit/script-security-plugin/fc8324a204edf7c2484118100ae43a65eb7a5306
            Log:
            JENKINS-34741 Noting issue number.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java http://jenkins-ci.org/commit/script-security-plugin/fc8324a204edf7c2484118100ae43a65eb7a5306 Log: JENKINS-34741 Noting issue number.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
            http://jenkins-ci.org/commit/script-security-plugin/ac5d5bf06fb15122437d43d69f5199266897ab64
            Log:
            Merge pull request #67 from jglick/structConstructor

            JENKINS-34741 Reproduced problem in test

            Compare: https://github.com/jenkinsci/script-security-plugin/compare/32d766ac9dcb...ac5d5bf06fb1

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java http://jenkins-ci.org/commit/script-security-plugin/ac5d5bf06fb15122437d43d69f5199266897ab64 Log: Merge pull request #67 from jglick/structConstructor JENKINS-34741 Reproduced problem in test Compare: https://github.com/jenkinsci/script-security-plugin/compare/32d766ac9dcb...ac5d5bf06fb1
            Show
            abayer Andrew Bayer added a comment - PR up at  https://github.com/jenkinsci/script-security-plugin/pull/114
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovyCallSiteSelector.java
            src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
            http://jenkins-ci.org/commit/script-security-plugin/284340db4d1f6821126170f7b6fe20819c29fbf4
            Log:
            [FIXED JENKINS-34741] Allow new Class(foo: bar) to work.

            Adds logic derived from Groovy's MetaClassImpl#invokeConstructor
            method to return the no-parameters constructor when no matching
            declared constructor is found, there's one argument, and that one
            argument is a Map.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovyCallSiteSelector.java src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java http://jenkins-ci.org/commit/script-security-plugin/284340db4d1f6821126170f7b6fe20819c29fbf4 Log: [FIXED JENKINS-34741] Allow new Class(foo: bar) to work. Adds logic derived from Groovy's MetaClassImpl#invokeConstructor method to return the no-parameters constructor when no matching declared constructor is found, there's one argument, and that one argument is a Map.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                jglick Jesse Glick
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: