Guest

Preview Tool

Cisco Bug: CSCul93643 - XMP SDK - Generated POJO constructor incorrect when Map stereotype used.

Last Modified

Mar 27, 2014

Products (1)

  • Cisco Prime Infrastructure

Known Affected Releases

1.1(0.56)

Description (partial)

Symptom:
I have a DataType which has an attribute called nvpairs which has the Map stereotype.  nvpairs type is a String.  The Map key as also a String.

The generated Java code seems to correctly declare nvpairs as:

    private Map<String, String> nvpairs = new HashMap<String, String>();

but the class constructor looks like:

   public CustomerDetailsDTO(
        String address ,
        String name ,
        String nvpairs ,
        String type    ){
       super();
       this.address = address;
       this.name = name;
       this.nvpairs = nvpairs;
       this.type = type;
    }

So subsequent complication fails due to trying to assign a String to a Map.

Conditions:
Nothing unusual
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.