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
When a Map with a String key that contains hyphen is cached (for instance "an-example"), when accessing through the cache, the key should be the same ("an-example").
Actual Behaviour
When a Map with a String key that contains hyphen is cached (for instance "an-example"), when accessing through the cache, the key is converted to camelCase ("anExample").
Expected Behavior
When a Map with a String key that contains hyphen is cached (for instance
"an-example"
), when accessing through the cache, the key should be the same ("an-example"
).Actual Behaviour
When a Map with a String key that contains hyphen is cached (for instance
"an-example"
), when accessing through the cache, the key is converted to camelCase ("anExample"
).Steps To Reproduce
Download and run https://github.com/dcalap/micronaut-cache-bug
Perform a GET http://localhost:8080/cacheBug
The first time you will see
an-id-with-hypen
Perform again a GET http://localhost:8080/cacheBug
The second time you will see
anIdWithHypen
Environment Information
macOS, OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
Micronaut 4.6.2 with Java 17, Gradle, and Micronaut Caffeine Cache
Example Application
https://github.com/dcalap/micronaut-cache-bug
Version
4.6.2
The text was updated successfully, but these errors were encountered: