It is the entity whose generated artifacts describe the field (a Kotlin enum class, * say), which for an inherited field is not the object that declares it.
*/ public MetaObject ofEntity(Field field) { MetaDimension dim = field.dimension(); - if (dim == null || dim.getVia() == null) return from; - return resolveFieldRefEntity(dim.getOf(), memberOwner(dim, from), root); + String via = dim == null ? null : dim.getVia(); + if (via == null) return from; + MetaObject terminal = reportingViaTerminal(via, memberOwner(dim, from), from, root); + return terminal == null ? null : resolveFieldRefEntity(dim.getOf(), terminal, root); } /** @@ -317,8 +320,10 @@ public static Listcount, sum, avg, min, max, any, all@default@of@segment