You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
COACTVWC port: Long.parseLong on a text field COBOL MOVEs into a numeric one throws on non-digit data #4491
bugUnintended behavior or logic failure in the engineera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
for MOVE XREF-CARD-NUM TO CDEMO-CARD-NUM (9200-GETCARDXREF-BYACCT: a PIC X(16) into a PIC 9(16)). COBOL does not validate an alphanumeric-to-numeric MOVE: it takes the digit part of each byte and carries on. The port throws NumberFormatException on any card number that is not all digits (letters, or blanks: "" after trim()).
Reproduce. Generate the cross-reference card number from its layout alone (no "digits": true rule): the first generated run of carddemo-acctview-generated failed on the Java side with NumberFormatException: For input string: "5HTJBYWDYRE8DRM0" at CoactvwcService.readAcct(CoactvwcService.java:228), while the COBOL side ran the scenario to the end.
Scope. Real CardDemo data holds 16-digit card numbers, so the shipped data never reaches this; the merged generated case steers XREF-CARD-NUM to digits ("digits": true) and says so. Other ports that parseLong / new BigDecimal a text field the COBOL MOVEs into a numeric one likely do the same: worth a grep, and a det-translator check of how an X-to-9 MOVE is emitted.
Done when: the port (and any other found) gives the COBOL's result for non-digit text in such a MOVE, and carddemo-acctview-generated proves with the digits rule removed.
bugUnintended behavior or logic failure in the engineera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
train: #4464 opaque DFHCOMMAREA + #3804 generated inputs (#4524)
COACTVWC port and det: X-to-9 MOVE never validates, as libcob (#4491) (…