APAR status
Closed as program error.
Error description
Environment: - OS (name, language, version or SP): Microsoft Windows XP SP2 - Product name (Build ID or version/patch level): IBM Rational Business Developer v7101 Reproducible Y/N: Y Description of problem: After migration of a Web project from v6 to v7101, int values wi ll be truncated when displayed on a JSF page. Workaround: Change int to bigint
Local fix
Problem summary
The issue arises because int is a binary number four bytes (31 bits for the number, one for the sign) long. This means the range of numbers that can be stored in a interger is between 2 to the 31th power minus 1 and -2 to the 31 th power, or between 2,187,483,647 to - 2,187,483,648. As you can see this means an int contain all 9 digit integers, but only some 10 digit integers. Instead of trying to explain this, our documentation is in essence telling users in you want to operate with integers with more than 9 digits, use a bigInt instead of an int variable. However we do not check or throw overflow if a calculation results in the assignment of a 10 digit value to an int variable that will actually fit in the variable. As to the difference between version 6 and version 7, in version 6 the bean getter returned a string and in version 7, the getter is returning an Integer object.
Problem conclusion
change the length of int in JSF int from 9 to 10 smallint from 4 to 5 bigint from 18 to 19
Temporary fix
Comments
APAR Information
APAR number
PK73702
Reported component name
RATL BUS DEV
Reported component ID
5724S5000
Reported release
710
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2008-10-13
Closed date
2008-12-12
Last modified date
2008-12-12
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
R710 PSN
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
20 December 2021