-
Bug
-
Resolution: Done
-
Minor
-
8.4
-
None
Running the CacheStats.groovy examples produces an casting error:
groovy:000> load ./examples/CacheStats.groovy
===> true
===> true
===> CacheStats@1f147d1a
Cleared Cache
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[hitRatio=0.0; totalEntries=0; requestCount=0]' with class 'java.util.Arrays$ArrayList' to class 'org.teiid.adminapi.CacheStatistics'
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:321)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:602)
at CacheStats.performTest(groovysh_evaluate:45)
at CacheStats$performTest.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)