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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1-BETA1
    • Fix Version/s: 1.0, 1.1-BETA1
    • Component/s: Java
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: