groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpolivaev <...@git.apache.org>
Subject [GitHub] groovy pull request #532: Prevent CachedField and CachedMethod from leaking ...
Date Sun, 14 May 2017 10:25:34 GMT
Github user dpolivaev commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/532#discussion_r116377495
  
    --- Diff: src/main/org/codehaus/groovy/reflection/CachedField.java ---
    @@ -65,6 +72,12 @@ public Object getProperty(final Object object) {
          * @throws RuntimeException if the property could not be set
          */
         public void setProperty(final Object object, Object newValue) {
    +        try {
    +            AccessPermissionChecker.checkAccessPermission(field);
    +        }
    +        catch (AccessControlException ex) {
    +            throw new IllegalArgumentException("Illegal access to field" + " " + field.getName());
    --- End diff --
    
    As above


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message