IBM Support

PM95657: inconsistency in error handling of modify() and create() perms

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The modify() and create() DXL perms behave inconsistenly when
    handling the same error.
    
    In the situation where a duplicate type name is used, modify()
    will assign a sensible error to the errmess parameter and will
    not produce a run-time error. create() will produce a run-time
    error and will not assign an error to the errmess parameter.
    
    To recreate with create() run the folowing code twice (on the
    second, failed run, a run-time error will be given)
    
    '
    string errmess = ''
    AttrType at = create('Cost', attrInteger, errmess)
    print errmess''
    '
    
    To recreate with modify() create 'Cost' and 'Cost1' types then
    run the following code, noting the lack of run-time error and
    the successful assignment of errmess:
    
    '
    string errmess = ''
    AttrType at = find(current Module,'Cost')
    AttrType mt = modify(at,'Cost1',errmess)
    print errmess''
    '
    
    Workaround: use different error handling methods for each
    (noError() and lastError() for create(), or the errmess
    parameter for modify()).
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Inconsistency in error handling of modify() and create()
    perms
    

Problem conclusion

  • The DXL reference manual has been updated.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM95657

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    930

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-08-22

  • Closed date

    2013-12-13

  • Last modified date

    2013-12-13

  • 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

    TLOGIC DOORS

  • Fixed component ID

    5724V61DR

Applicable component levels

  • R930 PSN

       UP



Document information

More support for: Rational DOORS

Software version: 9.3

Reference #: PM95657

Modified date: 13 December 2013