Skip to content
Browse files

JENKINS-46882 allow new Exceptions to be thrown

new Execption("foo") is currently not permitted, but is very useful to
do and is a standard/safe thing in a Jenkinsfile
  • Loading branch information...
James Hogarth
James Hogarth committed Apr 16, 2018
1 parent 4fc47a3 commit b4584131f5580fd7bc8dfe63e11fea8a9ea6cbff
@@ -53,6 +53,7 @@ method java.lang.Comparable compareTo java.lang.Object
new java.lang.Enum java.lang.String int
method java.lang.Enum name
method java.lang.Enum ordinal
new java.lang.Exception java.lang.String
staticField java.lang.Integer MAX_VALUE
# could add valueOf, though currently the staticField’s need to be whitelisted, which is the more likely use case
staticMethod java.lang.Integer parseInt java.lang.String

0 comments on commit b458413

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