Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-63

Wrong caching of method calls with more than three arguments in MethodResultCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.1, 3.1.1, 3.2
    • 3.3
    • Runtime
    • None

    Description

      When caching a method call with more than three arguments using MethodResultCache#put(Object value, Serializable keys), the 2nd argument is ignored, because it is overwritten by the 3rd argument in MethodCacheKey#init(Serializable keys).

      That means that two method calls which are only different in their 2nd argument are cached in the same slot.
      When the second call is cached, the first call is overwritten.
      When the cache is later queried for the first call, the result of the second call is returned.

      Attachments

        Activity

          People

            tv Thomas Vandahl
            ronvoe122 Ronny Völker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: