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
As discussed with Sergio we should review all the "*Expression" and related classes and configure them in the module. The tracing agent only generates config for what's used in the test application but not for everything, so we need to do it so anything that a user uses works.
As I'm working with Thymeleaf now and creating native-image, I could take a look. What was meant by "configure them in the module"?
There are many classes that are easily traced by the GraalVM Tracing Agent. I have some difficulties with OGNLShortcutExpression and OGNLVariableExpressionEvaluator and did not get traced. They do some more trickery with reflection.
Perhaps @danielfernandez could help us here? In the end, using Thymeleaf from within a GraalVM native image is really a cool feature.
Yes, I like Thymeleaf and use it with native image. However, It is difficult to say what belongs in the module and what belongs in the user application. Yesterday, for example, we had to add this commit setting some classes accessed by Thymeleaf as reflective and providing some config as well.
I added the application specific classes (by using the native-image-agent and running the application) and my application now works as a native image. With that, I agree that it's difficult to say what needs to be added from Thymeleaf or Views and from the user application 🤔
Issue description
Executing the micronaut-live-newsletter app with the agent generates at latest the following config:
see #302
The text was updated successfully, but these errors were encountered: