Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-309

TypeDiscoverer does not correctly resolve nested property path expressions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              olivergierke Oliver Drotbohm
              Last updater:
              Trevor Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: