Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

spring-boot-starter-thymeleaf: Missing Type Hint? #679

Closed
ewolff opened this issue Mar 28, 2021 · 1 comment
Closed

spring-boot-starter-thymeleaf: Missing Type Hint? #679

ewolff opened this issue Mar 28, 2021 · 1 comment
Assignees
Labels
type: compatibility Native image compatibility issue
Milestone

Comments

@ewolff
Copy link

ewolff commented Mar 28, 2021

To run my Thymeleaf application successfully, I had to add this TypeHint:

import org.thymeleaf.engine.IterationStatusVar;
....
@TypeHint(types = { IterationStatusVar.class }, access = AccessBits.ALL)

Thymeleaf useses reflection on this class for iteration during template rendering. So I think this TypeHint should be added to the starter.

I am running Spring Native 0.9.1 and spring-boot-starter-thymeleaf 2.4.3

@sdeleuze sdeleuze added this to the 0.9.2 milestone Mar 29, 2021
@sdeleuze sdeleuze self-assigned this Mar 29, 2021
@sdeleuze sdeleuze added the type: compatibility Native image compatibility issue label Mar 29, 2021
@sdeleuze
Copy link
Contributor

Good catch, I have added it and this use case is now checked in the integration test.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: compatibility Native image compatibility issue
Development

No branches or pull requests

2 participants