Skip to content

det translator emits Cobol.compareAll (IF X = ALL 'ab'), which cobolrt lacks, so the port does not compile #4557

Closed

Description

@squid-protocol

Problem

The det translator's code generator (det/gen.py) emits Cobol.compareAll(...) for a relation condition with an ALL literal (e.g. IF X = ALL 'ab'), but the cobolrt runtime has no compareAll, so the generated Java does not compile. Any program comparing against an ALL literal fails at the compile step, not with a by-name refusal.

Evidence

Found by the #4539 worker (PR #4556) while adding collating-sequence comparisons. Under a program collating sequence, #4556 refuses ALL literals by name; without one, the compile failure remains.

Acceptance criteria

  • Implement ALL literal relation semantics per IBM (the literal repeated to the length of the other operand, then compared) in cobolrt, with or without a collating sequence (reuse det: PROGRAM COLLATING SEQUENCE in alphanumeric relation conditions (#4539) #4556's Collating.relation padding), or refuse by name in the translator until it is implemented. Never emit uncompilable Java.
  • Equivalence test vs GnuCOBOL for =, <, > against ALL 'x', ALL 'ab', and figurative ALL SPACES/ALL ZEROS on items of different lengths.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    legacy-modernization
    priority: high
    on Oct 6, 2026
  2. added
    scope:core
    era:2
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugera:2legacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions