diff --git a/TODO.md b/TODO.md index fddff1e..56519f8 100644 --- a/TODO.md +++ b/TODO.md @@ -8,3 +8,5 @@ - extensible - fp - [ ] di bug: @Singleton toSelf() causes stack overflow +- [ ] figure out how to make the GroovyClassLoader consistent between the groovy compiler configuration and the wvc + compiler configuration. diff --git a/web-view-components-compiler/src/main/java/groowt/view/component/web/transpile/DefaultGroovyTranspiler.java b/web-view-components-compiler/src/main/java/groowt/view/component/web/transpile/DefaultGroovyTranspiler.java index 4b7e592..c855cf3 100644 --- a/web-view-components-compiler/src/main/java/groowt/view/component/web/transpile/DefaultGroovyTranspiler.java +++ b/web-view-components-compiler/src/main/java/groowt/view/component/web/transpile/DefaultGroovyTranspiler.java @@ -224,7 +224,7 @@ public class DefaultGroovyTranspiler implements GroovyTranspiler { // resolver, transpilerConfiguration, and positionSetter final ClassLoaderComponentClassNodeResolver resolver = new ClassLoaderComponentClassNodeResolver( compileUnit, - compileUnit.getGroovyCompilationUnit().getClassLoader() + compilerConfiguration.getGroovyClassLoader() ); final var transpilerConfiguration = this.getConfiguration(resolver); final PositionSetter positionSetter = transpilerConfiguration.getPositionSetter();