Skip to content
Permalink
Browse files

[JENKINS-46191] Verify fix from groovy-sandbox

  • Loading branch information...
abayer committed Aug 16, 2017
1 parent 2cc6126 commit 58e309f70200b974b8aac8df3093baeefc45c077
@@ -47,7 +47,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>groovy-sandbox</artifactId>
<version>1.14</version>
<version>1.15-20170816.182125-1</version> <!-- TODO: Switch to release once https://github.com/jenkinsci/groovy-sandbox/pull/39 is merged/released -->
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
@@ -859,4 +859,10 @@ public void rhsOfDeclarationTransformed() throws Exception {
assertRejected(new StaticWhitelist(), "staticMethod jenkins.model.Jenkins getInstance", "jenkins.model.Jenkins x = jenkins.model.Jenkins.getInstance()");
}

@Issue("JENKINS-46191")
@Test
public void emptyDeclaration() throws Exception {
assertEvaluate(new GenericWhitelist(), "abc", "String a; a = 'abc'; return a");
}

}

0 comments on commit 58e309f

Please sign in to comment.
You can’t perform that action at this time.