Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-25524] Making sure that the correct overload of PrintWriter.…
…print is whitelisted by default for use from Groovy templates.
  • Loading branch information
jglick committed Nov 14, 2014
1 parent 379c4af commit 72c574d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -1,5 +1,6 @@
# Needed for Groovy Templates to emit output:
method java.io.PrintWriter print java.lang.Object
method java.io.PrintWriter print java.lang.String

# Useful general stuff:
method java.lang.CharSequence length
Expand Down
Expand Up @@ -312,7 +312,7 @@ private Unsafe() {}
@Override public String call() throws Exception {
return t.make(new HashMap<String,Object>(Collections.singletonMap("aspect", "CRUEL"))).toString();
}
}, new StaticWhitelist("method java.lang.String toLowerCase", "method java.io.PrintWriter print java.lang.String")));
}, new ProxyWhitelist(new StaticWhitelist("method java.lang.String toLowerCase"), new GenericWhitelist())));
}

@Test public void selfProperties() throws Exception {
Expand Down

0 comments on commit 72c574d

Please sign in to comment.