AI migrated legacy COBOL programs to Java, bugs included
1–10 of 108 posts
Re: AI migrated legacy COBOL programs to Java, bugs included
#2[deleted]
Re: AI migrated legacy COBOL programs to Java, bugs included
#3I remember a similar story shared this year at JAX2026 from the Sparkasse Group, they said they were using AI to migrate from COBOL, but they still were in the middle of the migration. Maybe they faced the same issues / problems? It seemed pretty zealous to me, that everything was working smoothly, but this article highlights the limitations
Re: AI migrated legacy COBOL programs to Java, bugs included
#4Yeah nah maybe fix the bugs before swapping the average COBOL dev for the average Java dev.
Re: AI migrated legacy COBOL programs to Java, bugs included
#5Yeah nah maybe fix the bugs before swapping the average COBOL dev for the average Java dev.
sometimes if the bug exists for enough time it is intended behavior
Re: AI migrated legacy COBOL programs to Java, bugs included
#6Re: AI migrated legacy COBOL programs to Java, bugs included
#7Earlier quoted context omitted.
sometimes if the bug exists for enough time it is intended behavior
Indeed, there may even be a whole lot of code that depends on it.
Yeah. Bug-for-bug migration is a real thing in large code-bases in the industry. You want to replicate all behavior of the code regardless whether the behavior is a feature or a bug.
See Hyrum's Law: https://www.hyrumslaw.com/
Re: AI migrated legacy COBOL programs to Java, bugs included
#8Yeah nah maybe fix the bugs before swapping the average COBOL dev for the average Java dev.
sometimes if the bug exists for enough time it is intended behavior
Absolutely, and you'll have all kinds of fixes for the symptoms throughout the project.
COBOL isn't hard, the tooling around it on old systems are a pain though.
Re: AI migrated legacy COBOL programs to Java, bugs included
#9The largest test case was 4kloc.
There are hundreds of billions of lines of cobol in production.
The IRS alone has approx 160 cobol programs, averaging 230kloc each.