Skip to content

Commit

Permalink
Fix ClassNotFound exception from reflection logic (#984)
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin authored Sep 7, 2023
1 parent 9aab8ff commit 3d8d3f2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import java.util.Map;
import java.util.function.Function;

import io.helidon.build.archetype.engine.v2.ArchetypeEngineV2;

/**
* Utility class to invoke the archetype engine using reflection.
*/
Expand Down Expand Up @@ -74,7 +72,7 @@ final class ReflectedEngine {
.invoke(builder, inputResolver(isInteractive));
engineBuilderClass.getDeclaredMethod("fileSystem", FileSystem.class)
.invoke(builder, fileSystem);
Constructor<?> constructor = engineClass.getDeclaredConstructor(ArchetypeEngineV2.Builder.class);
Constructor<?> constructor = engineClass.getDeclaredConstructor(engineBuilderClass);
constructor.setAccessible(true);
engineInstance = constructor.newInstance(builder);
generateMethod = engineClass.getDeclaredMethod("generate");
Expand Down

0 comments on commit 3d8d3f2

Please sign in to comment.