Releases: opensourcecobol/opensourcecobol4j
Releases · opensourcecobol/opensourcecobol4j
v1.1.7-hotfix1
Fix
- Fix bugs related to UTF-8
- With older versions, DISPLAY statements output invalid UTF-8 data when the arguments are sub items of group fields.
- With older versions, initilizing data with VALUE clauses fails in some cases.
v1.1.7
Add
- Implement the environment variable
COB_TERMINAL_ENCODING
.- If the value of
COB_TERMINAL_ENCODING
isUTF-8
, the DISPLAY statement outputs data after converting it to UTF-8. Otherwise, it outputs raw data (typically encoded in Shift JIS). - If the value of
COB_TERMINAL_ENCODING
isUTF-8
, the ACCEPT statement processes input data as UTF-8 encoded. Otherwise, it processes input data as Shift JIS encoded.
- If the value of
- Fix the UTF-8 compatible compiler to recognize that the size of multibyte characters in COBOL source code as 2 bytes instead of 3 bytes.
- This change allows users to write more multibyte characters on each line of the COBOL source code.
v1.1.6
Add
- Compile UTF-8 Source Code
- The latest version of cobj is now able to accept UTF-8 encoded COBOL and generate UTF-8 encoded Java.
- See documentation to install the UTF-8 compatible compiler.
v1.1.5
Add
- String literals containing SJIS characters are remained as they are, not being converted into byte arrays.
- The older versions convert string literals containing SJIS characters into byte arrays with hexdecimal integers.
- Older versions convert
"日本語"
intoCobolUtil.toBytes((byte)0x93, (byte)0xfa, (byte)0x96, (byte)0x7b, (byte)0x8c, (byte)0xea)
. - Latest version converts
"日本語"
intoCobolUtil.stringToBytes("日本語")
.
- Older versions convert
- The older versions convert string literals containing SJIS characters into byte arrays with hexdecimal integers.
Fix
- Fix comparisons of COMP data.
- With older versions, comparisons of COMP data are invalid in some cases.
v1.1.4
Fixed
- Process Japanese identifiers in COBOL correctly.
- The older versions convert some Japanese characters in COBOL identifiers to another characters in Java.
- Fix the conditions
PERFORM UNTIL
.- If COBOL source code contains divisions in conditions of
PERFORM UNTIL
, the older versions emit compile errors.
- If COBOL source code contains divisions in conditions of
- Fix
SEARCH
statements with data specifiedOCCURS
andDEPENDING
.- The older versions emit compile errors when
SEARCH
statements with data specifiedOCCURS
andDEPENDING
- The older versions emit compile errors when
- Fix
ADD
statements andSUBTRACT
statements.- In some case, the result of
SUBTRACT
was previously incorrect when the operands contais PIC S9(n) negative values. - In some case, the result of
ADD
was -0 instead of +0 previously.
- In some case, the result of
- Fix the process of checking signs of PIC 9(n) containing spaces.
- Fix
INSPECT
statements.- The older versions change signs of some values accidentally because of the bug of
INSPECT
statements.
- The older versions change signs of some values accidentally because of the bug of
v1.1.3
Added
- Add a new option
-variable
- With
-variable
, cobj allows 73 or more characters for each lines
- With
- Add documentations that describe the structure of libcobj and generated Java files
- Add Visual Studio Code Dev Container of opensource COBOL 4J
Fixed
- Fix a build error of opensource COBOL 4J on Windows 10
- Fix a build error of opensource COBOL 4J on Docker
- Fix
cobj-api
cobj-api
previously generated invalid constructors in record classses
- Fix typos of
cobj-idx
command - Fix a command line option
-fserial-variable
Miscellaneous
- Improve the readability of variable names containing multi-byte characters
- Convert some EVALUATE statements to switch statements
v1.1.2
Added
- Add a new command line option
-Wtruncate
.- When
-Wtruncate
is enabled, cobj warns data truncations of MOVE statements.
- When
Fix
- Fix
CALL (an integer) BY CONTENT
. - Change
-m
option so that generated jar files contains only class files. Now-m
becomes an alias of-jar
. - Show an error message when SCREEN SECTION is found.
Miscellaneous
- Improve code generated by cobj-api.
v1.1.1
Added
- Release API refenrence of the runtime library
libcobj.jar
- opensource COBOL 4J on Windows passed COBOL85 test suites
Miscellaneous
- Upgrade dependencies of
libcobj.jar
to the latest versions
v1.1.0
New! opensource COBOL 4J supports Windows!
Added
- Add a command line option
-Wimplicit-define
option
Fix
- Fix READ PREVIOUS statement after START statement with <= operator
- Fix Java code generated by cobj-api
- "-" in Java variables are converted to "_"
Miscellaneous
- Refactor libcobj/
- Support Ubuntu 24.04
v1.0.22
Added
- Add cobj-api command (#370)
- With cobj-api, you can easily generate an Spring boot Java file that calls the program generated by cobj.
- See https://github.com/opensourcecobol/opensourcecobol4j?tab=readme-ov-file#cobj-api
- Implement a -Wstrict-typing (#369)