IBM Support

PI34813: RiJ: Vararg constructor argument always roundtripped with endless [] array brackets

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • Constructor varargs are always roundtripped as arrays.
    
    STEPS TO REPRODUCE
    
    1. Create new RiJ project
    2. Add a class and a contructor
    3. Generate code and open class source code
    4. Add an argument to the constructor e.g.
    
    public  ClassX(String... var) {
    
    5. Save the project to invoke roundtrip. The code is
    roundtripped into the model as an array and the code generation
    overwrites the source code as:
    
    public  ClassX(String []... var) {
    
    6. Repeat step 5. Note another set of [] brackets are added with
    each roundtrip
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of version 812                                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Java Constructor  with  variable length argument List        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI34813

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    812

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-02-11

  • Closed date

    2015-06-26

  • Last modified date

    2015-06-26

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

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

Fix information

Applicable component levels

  • R813 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.1.2","Line of Business":{"code":"LOB02","label":"AI Applications"}}]

Document Information

Modified date:
16 October 2021