Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3940

JbossPojoCacheProvider get method implementation error

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.1.GA
    • Fix Version/s: 2.1.2.CR1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      JBoss 4.2.3.GA

      Description

      JbossPojoCacheProvider get method implementation is wrong. Region parameter ignored and return Node instance :

      public Object get(String region, String key)
      {
      try

      { return cache.get(getFqn(key)); }

      catch (CacheException e)

      { throw new IllegalStateException(String.format("Cache throw exception when trying to get %s from region %s.", key, region), e); }
      }

      It shoul be like JbossCacheProvider get method :

      public Object get(String region, String key)
      {
      try
      {
      Node node = cache.get(getFqn(region));
      if (node != null)
      { return node.get(key); }
      else
      { return null; }
      }
      catch (CacheException e)
      { throw new IllegalStateException(String.format("Cache throw exception when trying to get %s from region %s.", key, region), e); }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                norman.richards Norman Richards
                Reporter:
                huygun Hakan Uygun
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: