IBM Support

PM50017: RBD 8012 Can't add numerical keys to the dictionary

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment: Windowns XP
    Rational Business Developer 8012
    
    Description:
    When having a Dictionary and adding numerical values in it, it
    is not being add at all and it can't be retrieved
    
    function start()
    
      /*
    
      * The first Dictionary is handled well.
    
      * The second Dictionary can't handle the first and fifth
    entries for
    the key only contains numbers.
    
      */
    
      dict1 Dictionary{};
    
      dict1['a'] = 'first';
    
      dict1['b'] = 'second';
    
      dict1['c'] = 'third';
    
      dict1['d'] = 'fourth';
    
      dict1['e'] = 'fifth';
    
    
    
      dict2 Dictionary{};
    
      dict2['1'] = 'first';
    
      dict2['b2'] = 'second';
    
      dict2['3c'] = 'third';
    
      dict2['d'] = 'fourth';
    
      dict2['5'] = 'fifth';
    
    
    
      SysLib.writeStdout('dict1:');
    
      for (i int from 1 to dict1.getKeys().getSize())
    
      SysLib.writeStdout(dict1.getKeys()[i] + '=' +
    dict1.getValues()[i]);
      end
    
    
    
      SysLib.writeStdout('');
    
      SysLib.writeStdout('dict2:');
    
      for (i int from 1 to dict2.getKeys().getSize())
    
      SysLib.writeStdout(dict2.getKeys()[i] + '=' +
    dict2.getValues()[i]);
      end
    
      // Output
    
      // dict1:
    
      // a=first
    
      // b=second
    
      // c=third
    
      // d=fourth
    
      // e=fifth
    
      //
    
      // dict2:
    
      // b2=second
    
      // 3c=third
    
      // d=fourth
    
    end
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a Dictionary in a Rich UI application is given a
    key-value pair where the key consists entirely of digits,
    the key and value will not be returned by functions on the
    Dictionary, such as getKeys and getValues.
    

Problem conclusion

  • RBD now supports keys whose characters are all digits.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM50017

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-10-13

  • Closed date

    2012-01-27

  • Last modified date

    2012-01-27

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R801 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 January 2012