You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
a.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
/Users/jlong/Drive/LIVE/joshlong-api/api/target/generated-sources/spring-aot/src/main/java/org/springframework/aot/ContextBootstrapInitializer.java:[8,31] cannot find symbol
symbol: class IndexConfiguration$$EnhancerBySpringCGLIB$$798cc92e
location: package com.joshlong.blog.index
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1220)
at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
....
basically, the generated ContextBootstrapInitializer.java is trying to reference the proxied name of the @Configuration class (IndexConfiguration$$EnhancerBySpringCGLIB$$798cc92e), not IndexConfiguration itself.
If I move the @EventListener to a static nested @Component, everything works again:
Hi, if I compile against Boot 2.6.1 and Spring Native 0.11 I encounter an error on compiling when using
@EventListeners
in a@Configuration
class.I get an error:
basically, the generated
ContextBootstrapInitializer.java
is trying to reference the proxied name of the@Configuration
class (IndexConfiguration$$EnhancerBySpringCGLIB$$798cc92e
), notIndexConfiguration
itself.If I move the
@EventListener
to a static nested@Component
, everything works again:The text was updated successfully, but these errors were encountered: