Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-265

Allow access to non public class's public methods from a public sub-classes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • Bean / Property Utils
    • None

    Description

      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<--------------

      Attachments

        1. beanutils.txt
          12 kB
          Tom Schindl

        Issue Links

          Activity

            People

              niallp Niall Pemberton
              tomson Tom Schindl
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: