|
OK. I can confirm there's something fishy here and I reproduced the problem you have with your second test.
The StandardQueryCache.put works because the resultTypes are autodiscovered from the resultset when the query is first executed.
This is not the case when you're hitting the cache next thus the NPE only in this case.
– g
|