Skip to content

Commit 8a2e7ef

Browse files
committed
Fixed bug in ComplexType in case an ComplexType is extended, and the extension itself is extended furthermore, the properties were not gathered correctly.
1 parent 7f6ae0b commit 8a2e7ef

File tree

1 file changed

+1
-1
lines changed
  • core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/metamodel

1 file changed

+1
-1
lines changed

core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/metamodel/ComplexType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ default boolean isAbstractEntity() {
2020
*/
2121
default List<Property> getAllProperties() {
2222
if ( getExtends().isPresent() ) {
23-
return Stream.of( getProperties(), getExtends().get().getProperties() ).flatMap( Collection::stream ).collect( Collectors.toList() );
23+
return Stream.of( getProperties(), getExtends().get().getAllProperties() ).flatMap( Collection::stream ).collect( Collectors.toList() );
2424
}
2525
return List.copyOf( getProperties() );
2626
}

0 commit comments

Comments
 (0)