IBM Support

PM27777: Declaring a constant array of constants produces BuildException,MissingResourceException error

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment: Windows
    
    Product name: IBM? Rational? Business Developer
    
    Program Version    :  7.5.1.6
    Description.
    Declaring a constant array of constants produces a build,
    generation error.
    The following declaration reproduces this condition:
    // basic library
    
    library simplelib type BasicLibrary {}
    
    // set MCLB_MESSAGE
    
    const mclbMessageFreeFormat smallint = 100;
    const mclbMessage smallint[1] = [mclbMessageFreeFormat];
    
    end
    
    
    The message displayed relating to the build error is found in
    the workspace .log file referring to 'Exception stack trace:
    com.ibm.etools.edt.internal.core.builder.BuildException:
    java.util.MissingResourceException: Can't find resource for
    bundle java.util.PropertyResourceBundle, key 0'.
    
    Workaround
    When the CONST attribute of the array is dropped the code
    generation completes successfully.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Coding a reference to a constant inside of an array constant
    value resulted in an exception being thrown during
    compilation.
    

Problem conclusion

  • The code has been changed to issue a validation error
    message when this is attempted. Currently, only literals are
    valid for use as constant values and inside array constants
    values.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM27777

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-11-30

  • Closed date

    2011-05-06

  • Last modified date

    2011-05-06

  • 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

  • R751 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":"7.5.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
06 May 2011