Skip to content

Commit

Permalink
Merge pull request #141 from abayer/jenkins-46191
Browse files Browse the repository at this point in the history
[JENKINS-46191] Verify fix from groovy-sandbox
  • Loading branch information
abayer committed Aug 16, 2017
2 parents 2cc6126 + 7afdb08 commit be50a6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -47,7 +47,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>groovy-sandbox</artifactId>
<version>1.14</version>
<version>1.15</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
Expand Down
Expand Up @@ -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 be50a6d

Please sign in to comment.