Skip to content

det translator: CICS facades are stubs (handleLink throws, void handleTransaction does nothing), not the region-run facade #4465

Closed

Description

@squid-protocol

Problem

The det translator writes a CICS port's façades as stubs (gitgalaxy/tools/cobol_to_java/det/program.py, the for meth in ("handleTransaction", "handleLink") loop):

  • a void façade does nothing (// this port runs as runTask(CicsTask));
  • a typed façade throws UnsupportedOperationException("<meth>: this port runs as runTask").

So a det port's deployed entry points do not run the program. That breaks the #4342 rule (no generated entry that does nothing) and the #4343 façade contract (CicsTask.region() → transaction / linked → region.run(task, name, this::runTask)), which the model ports and the generator's own façades follow.

Found by

#4449 (PR #4455): the equivalence harness's java-facade side enters each LINK target the case runs through its handleLink, as the CICS crucible does since #4343. In cbsa-inqacc, scenario null-statement-date (SQLCODE -305 → INQACC LINKs ABNDPROC), ABNDPROC's det port is refused with handleLink of ABNDPROC threw before it ran its level: java.lang.UnsupportedOperationException: handleLink: this port runs as runTask. INQACC's runTask side passes 14/14. Its java-facade side passes 13/14.

Expected

The det translator emits the same façade bodies the transaction forge does: CicsTask.Region region = CicsTask.region(); CicsTask task = region.transaction(transid, request) (or region.linked(NAME, request)), region.run(task, NAME, this::runTask), returning task.returned(..) or request as the generated signature says. A det regression test should cover both façades.

Acceptance

Coordination: det/ is in use by #4436 (READ LENGTH). Sequence this after it.

🤖 Generated with Claude Code

Activity

  1. squid-protocol commented on Oct 5, 2026

    @squid-protocol
    OwnerAuthor

    Also affects genapp-lgupdb01: its LINK target LGUPVS01 is a det port, and its handleLink throws the same way. java-facade passes 1/5 (update-endowment, update-house, update-motor and stale-lastchanged are refused). runTask passes 5/5. Ledgered in tests/equivalence/facade_baseline.json (#4455).

  2. added
    bug
    legacy-modernization
    priority: high
    on Oct 5, 2026
  3. added 2 commits that reference this issue on Oct 6, 2026
  4. added
    scope:core
    era:4
    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:4legacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions