Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-53

Global Update of Chain - Generics, JDK 1.5, Update Dependency Versions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      As posted in the mailing list, I've done this work outside of an offical branch.

      In this patch:

      • Global upgrade to the JDK 1.5
      • Added @Override annotations
      • Upgraded to the Servlet 2.5 API
      • Upgraded to the Faces 2.1 API
      • Upgraded to the Portlet 2.0 API
      • Upgraded the Maven Parent POM version
      • Added generics support to Command so that Command's API looks like:

      public interface Command<T extends Context> {
      ...
      boolean execute(T context) throws Exception;
      }

      The only incompatibility with the existing API is in: org.apache.commons.chain.web.servlet.ServletHeaderValuesMap on line 97. Previously the API was returning Set<Entry<String, Enumeration<String>> when by all indications it actually should have been returning Set<Entry<String, String[]>>. I believe that I fixed a previously undiscovered bug here.

      Attachments

        1. CHAIN-53_2011-08-25.patch
          83 kB
          Elijah Zupancic

        Activity

          People

            simone.tripodi Simone Tripodi
            elijah Elijah Zupancic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: