Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-29541] GString receiver handling #20

Merged
merged 2 commits into from Aug 5, 2015

Conversation

jglick
Copy link
Member

@jglick jglick commented Aug 4, 2015

JENKINS-29541

Adding a whitelist entry for String.substring is trivial and in fact an administrator could do so for themselves. The bigger problem was with GString, whose invokeMethod is a little hack to delegate unknown methods to String; this needs special treatment. (Ideally the Groovy sandbox library would handle this sort of painful detail, but it does not.)

@reviewbybees

@ghost
Copy link

ghost commented Aug 4, 2015

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@amuniz
Copy link
Member

amuniz commented Aug 4, 2015

🐝

Out of scope: perhaps findMatchingMethod should be improved to search for the receiver method in parents hierarchy.

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@tfennelly
Copy link
Member

🐝

@jglick
Copy link
Member Author

jglick commented Aug 5, 2015

perhaps findMatchingMethod should be improved to search for the receiver method in parents hierarchy

Well that is what method does when it calls findMatchingMethod in a loop, but (so far as I know) staticMethod does not need that, nor does method’s check for String methods on a GString.

jglick added a commit that referenced this pull request Aug 5, 2015
[JENKINS-29541] GString receiver handling
@jglick jglick merged commit ccca55d into jenkinsci:master Aug 5, 2015
@jglick jglick deleted the GString-JENKINS-29541 branch August 5, 2015 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants