-
Bug
-
Resolution: Done
-
Major
-
9.4.1.Final
-
None
Unable to find source-code formatter for language: springcachetest.java. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
@Test public void testGetWithNullValue() { assertNull(cache.get("null", () -> null)); }
Caused by: java.lang.NullPointerException: Null values are not supported!
and
Unable to find source-code formatter for language: springcachetest.java. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
@Test public void testGetNullValueAfterPutNull() { cache.put("key", null); String result = cache.get("key", () -> "notnull"); assertNull(result); }
java.lang.ClassCastException: org.infinispan.spring.provider.NullValue cannot be cast to java.lang.String
- relates to
-
ISPN-9705 SpringCache Put null value and get(key, clazz) IllegalStateException
- Closed