Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3526

Aegis cannot handle nested map inheritance

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.4.1, 2.3.5
    • Component/s: Aegis Databinding
    • Labels:
      None
    • Environment:

      Debian GNU/Linux tomcat 6

      Description

      The following code fails when trying to retrieve data with the simple fronted

      public class ComplexMapResult extends
      HashMap<String, Map<Integer, Integer>> {
      }

      // fail returns null map value
      public ComplexMapResult testComplexMapResult();

      How it fails. On retrieve when I try to print the resulting matrix I get
      INFO: client.TestClient.testComplexMapResult(TestClient.java:35):

      {key1=[#document: null]}

      where I should get a valid map for the key "key1"

      The following code succeeds

      // success
      public Map<String, Map<Integer, Integer>> testDirectComplexMapResult();

      So my guess is Aegis doesn't handle the inheritance very well.

      Further more the following code succeeds

      // success
      public class SimpleMapResult extends HashMap<String, Integer> {
      }

      // success
      public SimpleMapResult testSimpleMapResult();

      so that means it handles the extension when there is no nesting

      I will try to attach the eclipse project for this (~7k)

        Attachments

        1. ws-test.tgz
          7 kB
          Vassilis Virvilis

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              vasvir Vassilis Virvilis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: