Uploaded image for project: 'Shale'
  1. Shale
  2. SHALE-405

Incorrect logic in MockApplication12.addELResolver(ELResolver resolver)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1.0-SNAPSHOT
    • 1.0.5
    • Test
    • None
    • Not environment specific
    • Important

    Description

      Current implementation will never allow addition of el resolvers regardless of the point in the app lifecycle:

      /**

      {@inheritDoc} */
      public void addELResolver(ELResolver resolver) {

      // Simulate the restriction that you cannot add resolvers after
      // the first request has been processed.
      if (resolver != null) { throw new IllegalStateException("Cannot add resolvers now"); }

      resolvers.add(resolver);

      }

      should read:

      /** {@inheritDoc}

      */
      public void addELResolver(ELResolver resolver) {

      // Simulate the restriction that you cannot add resolvers after
      // the first request has been processed.
      if (this.resolver != null)

      { throw new IllegalStateException("Cannot add resolvers now"); }

      resolvers.add(resolver);

      }

      Attachments

        Activity

          People

            rahul@apache.org Rahul Akolkar
            dchasman Doug Chasman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: