Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2755

CacheStats.groovy example needs updating, return type has changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 8.4.1, 8.6
    • 8.4
    • Build/Kits
    • None

    Description

      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)

      Attachments

        Activity

          People

            van.halbert Van Halbert (Inactive)
            van.halbert Van Halbert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: