opensourcecobol / opensourcecobol4j

A new version of opensourcecobol. Translate COBOL to Java.
https://opensourcecobol.github.io/opensourcecobol4j/
GNU General Public License v3.0
74 stars 34 forks source link

Bugfix about `WHEN` condition of `SEARCH` #551

Closed tsh-hashimoto closed 3 days ago

tsh-hashimoto commented 3 days ago

There is a problem with this product: If there is an OCCURS key item on the right hand of the WHEN conditional expression, a conversion error occurs.
This problem can be avoided by specifying a configuration file with the -conf option when executing cobj.

This pull request includes the addition of a new COBOL compiler configuration file and updates to the test suite to verify the new configuration settings. The most important changes are:

Configuration updates:

Testing updates:

yutaro-sakamoto commented 3 days ago

@tsh-hashimoto Please move config/allow-key-in-rhs.conf to other directory (e.g. tests/command-line-options.src/). Since compiler users refer to the config/ directory, any changes to the contents of the directory should be carefully considered.

tsh-hashimoto commented 3 days ago

@yutaro-sakamoto Thank you for checking. I moved allow-key-in-rhs.conf to tests/command-line-options.src/ (and a little fixed the test conf.at).