Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Getters support getting values from nested Pojo by adding suitable methods/fields in the chain

      for example

      class Inner {
        private int b;
        public int getB() { return b; }
        public void setB(int b) { this.b = b; }
      }
      
      class Nested {
        private in a;
        private Inner inner;
        public int getA() { return a; }
        public void getA(int a) { this.a = a; }
        public Inner getInner() { return inner; }
        public void setInner(Inner i) { this.inner = i; }
      }
      

      With above objects If getter is specified as `inner.b` then the expression is created with
      `object.getInner().getB()` which compiles and gives result correctly.

      If setter is specified with same expression it fails to compile as inner is a private object.
      We plan to include similar functionality for setters by following chain of objects and constructing valid java expressions.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tushargosavi Tushar Gosavi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: