Skip to content

Commit 102ef32

Browse files
committed
fix: dsl processor missing generic parameters
1 parent 8d230c8 commit 102ef32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

annotations/dsl/src/main/java/io/sundr/dsl/internal/processor/DslProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
6767
for (Element element : env.getElementsAnnotatedWith(annotation)) {
6868
if (element instanceof TypeElement) {
6969
Generics.clear();
70+
context.getNodeRepository().clear();
7071
TypeElement typeElement = (TypeElement) element;
7172
InterfaceName interfaceName = element.getAnnotation(InterfaceName.class);
7273
String targetInterface = interfaceName.value();
@@ -88,7 +89,8 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
8889

8990
for (Node<TypeDef> root : graph) {
9091
Node<TypeDef> uncyclic = Nodes.TO_UNCYCLIC.apply(root);
91-
Node<TypeDef> unwrapped = Nodes.TO_UNWRAPPED.apply(NodeContext.builder().withItem(uncyclic.getItem()).build());
92+
Node<TypeDef> unwrapped = Nodes.TO_UNWRAPPED
93+
.apply(NodeContext.builder().withItem(uncyclic.getItem()).withAll(genericAndScopeInterfaces).build());
9294
TypeDef current = unwrapped.getItem();
9395

9496
//If there are not transitions don't generate root interface.

0 commit comments

Comments
 (0)