Zavarov/monticore-commons

Arguments for Cache initialization.

Closed this issue · 0 comments

Describe the bug
When initializing the cache with a default expiration time, a wrong value is used.

To Reproduce
Steps to reproduce the behavior:

<<initializer="P1D">>
Cache<...> cache;

will create expireAfterAccess(java.time.Duration.parse("initializer").

Expected behavior
The generated cache ought to be initialized with expireAfterAccess(java.time.Duration.parse("P1D").