Van Halbert created TEIID-2755:
----------------------------------
Summary: CacheStats.groovy example needs updating, return type has changed
Key: TEIID-2755
URL:
https://issues.jboss.org/browse/TEIID-2755
Project: Teiid
Issue Type: Bug
Components: Build/Kits
Affects Versions: 8.7
Reporter: Van Halbert
Assignee: Van Halbert
Priority: Minor
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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira