[jOOQ/jOOQ#9736] Help the poor Java 8 and 11 compilers
This commit is contained in:
parent
ee6db644ea
commit
650e0245a8
@ -1340,7 +1340,7 @@ final class MetaImpl extends AbstractMeta {
|
||||
return;
|
||||
}
|
||||
|
||||
references.add(new ReferenceImpl<>(
|
||||
references.add(new ReferenceImpl<Record, Record>(
|
||||
this,
|
||||
name(fkName),
|
||||
fkFields,
|
||||
@ -1734,7 +1734,7 @@ final class MetaImpl extends AbstractMeta {
|
||||
Schema schema = schemas.get(defaultString(k.get(1, String.class)));
|
||||
Table<Record> fkTable = (Table<Record>) lookupTable(schema, k.get(2, String.class));
|
||||
|
||||
references.add(new ReferenceImpl<>(
|
||||
references.add(new ReferenceImpl<Record, Record>(
|
||||
fkTable,
|
||||
name(k.get(5, String.class)),
|
||||
map(v, f -> (TableField<Record, ?>) fkTable.field(f.get(7, String.class)), TableField[]::new),
|
||||
|
||||
@ -1839,7 +1839,7 @@ final class Tools {
|
||||
// [#10603] [#5050] TODO: Solve aliasing constraints more generically
|
||||
// [#8762] We can't dereference child.fields() or parent.fields() here yet, because this method is being called by
|
||||
// the TableImpl constructor, meaning the fields are not initialised yet.
|
||||
return new ReferenceImpl<>(
|
||||
return new ReferenceImpl<R, O>(
|
||||
child,
|
||||
key.getQualifiedName(),
|
||||
Tools.fieldsByName(child, key.getFieldsArray()),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user