Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-793

Invalid getter method is called when getter method to have one or more args is exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1-BETA1
    • 1.0, 1.1-BETA1
    • Java
    • None
    • when use the Shindig Java implementation

    Description

      BeanJsonConverter searchs getter methods in model class (ex. PersonImpl). Then, if the model class has a public getter method to have one or more args, calling this getter method with reflection will fail, because the method is called without an argument.

      Object val = getter.method.invoke(pojo, EMPTY_OBJECT);

      I think that BeanJsonConverter should find the getter method without an argument.

      Attachments

        1. BeanJsonConverter.patch
          2 kB
          Yoichiro Tanaka

        Activity

          People

            Unassigned Unassigned
            yoichiro Yoichiro Tanaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: