Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-33023] Making sure we can really use enums without extra whi…
…telisting.
  • Loading branch information
jglick committed Apr 26, 2016
1 parent 5b4623a commit c544340
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Expand Up @@ -208,7 +208,7 @@ private boolean exists(Class<?> c, boolean start) throws Exception {
}
}
try {
c.getMethod(method, types(argumentTypes));
c.getDeclaredMethod(method, types(argumentTypes));
return true;
} catch (NoSuchMethodException x) {
return false;
Expand Down
Expand Up @@ -40,6 +40,7 @@ new java.io.StringReader java.lang.String
method java.lang.CharSequence charAt int
method java.lang.CharSequence length
method java.lang.Comparable compareTo java.lang.Object
method java.lang.Object clone
method java.lang.Object equals java.lang.Object
method java.lang.Object getClass
method java.lang.Object toString
Expand Down
Expand Up @@ -574,7 +574,7 @@ public Object invokeMethod(String name, Object args) {
+ "}\n"
+ "Thing.values()[0].description\n";
String expected = "The first thing";
assertEvaluate(new BlanketWhitelist(), expected, script);
assertEvaluate(new GenericWhitelist(), expected, script);
}

private static void assertEvaluate(Whitelist whitelist, final Object expected, final String script) {
Expand Down

0 comments on commit c544340

Please sign in to comment.