Spring Data Commons
  1. Spring Data Commons
  2. DATACMNS-309

TypeDiscoverer does not correctly resolve nested property path expressions

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5 Final
    • Fix Version/s: 1.5.1, 1.6 M1
    • Component/s: Core
    • Labels:
      None

      Description

      class Foo {
        Bar bar;
      }
      
      class Bar {
        Long id;
      }
      
      TypeInformation<?> type = ClassTypeInformation.from(Foo.class);
      assertThat(type.getProperty("bar.id"), is(notNullValue()));
      

      The assertion fails as TypeDiscoverer.getProperty(…) does not recursively resolve the properties but looks up the head in the cache only (line 180).

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Oliver Gierke
              Reporter:
              Oliver Gierke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: