[ 
https://issues.apache.org/jira/browse/BEANUTILS-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niall Pemberton resolved BEANUTILS-265.
---------------------------------------

    Resolution: Fixed

Thanks for the patch but I refactored the solution - there was already code in 
the getMatchingAccessibleMethod() that was using Method setAccessible(true) - 
so I factored that out into a separate method:

    http://svn.apache.org/viewvc?view=rev&revision=687221

...and then used that in getAccessibleMethod() - but only for this specific use 
case (a public sub-class of non-public parent):

    http://svn.apache.org/viewvc?view=rev&revision=687223

> Allow access to non public class's public methods from a public sub-classes
> ---------------------------------------------------------------------------
>
>                 Key: BEANUTILS-265
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-265
>             Project: Commons BeanUtils
>          Issue Type: New Feature
>          Components: Bean / Property Utils
>    Affects Versions: 1.7.0
>            Reporter: Tom Schindl
>            Assignee: Niall Pemberton
>             Fix For: 1.8.0
>
>         Attachments: beanutils.txt
>
>
> Currently BeanUtils doesn't provide the possibility to access getters and 
> setters in classes who are package-scoped!
> ---------------8<---------------
> class HiddenBean {
>       private String a;
>       
>       protected HiddenBean() {
>               
>       }
>       
>       public void setA(String a) {
>               this.a = a;
>       }
>       
>       public String getA() {
>               return this.a;
>       }
> }
> public class PublicBean extends HiddenBean {
> }
> ---------------8<---------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to