wdamick / legstar

Automatically exported from code.google.com/p/legstar
0 stars 0 forks source link

BYTE_LENGTH in generated classes should be a long #188

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In some cases, the maximum size of a record may exceed 2,147,483,647 the 
largest java integer.

This can be easily simulated with this cobol structure:

       01 DFHCOMMAREA.
           05 FIXED-ARRAY OCCURS 16777215 TIMES.
              10 FILLER PC X(300).

The coxbgen generated code uses an integer for the BYTE-LENGTH which results in 
an incorrect value (long value modulo 2^32).

The workaround is to reduce the number of OCCURS.

Original issue reported on code.google.com by fady.mou...@gmail.com on 13 Feb 2015 at 10:35

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2038.

Original comment by fady.mou...@gmail.com on 13 Feb 2015 at 3:33

GoogleCodeExporter commented 8 years ago

Original comment by fady.mou...@gmail.com on 13 Feb 2015 at 3:36