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

PropertyUtils doesn´t work with private internal classes

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.8.3
    • 2.0.0
    • Bean / Property Utils
    • None

    Description

      I did a test using a internal private class to get the value of the fields. Sample:

      public class Master {

      private class Internal {
      private String field;

      public String getField()

      { return field; }

      public void setField(String field) {
      this.field = field;
      }
      }
      }

      When I try: PropertyUtils.getProperty(myInternalInstance, "field") I got an exception about "field not found".

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            robsonfarias Robson Vargas Farias

            Dates

              Created:
              Updated:

              Slack

                Issue deployment