File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/data Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
44
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
66
7+ ## [ Unreleased]
8+ ### Added
9+ * Implement runtime numeric checkings (#253 )
10+ * Implement sorting a table based on ebcdic (#254 )
11+ * Implement KEY IS option of SORT statements (#259 )
12+ * Add documents that describes installations and requirements (#256 )
13+ * Implement the environemt variable COB_NIBBLE_C_UNSIGNED (#258 )
14+ * Add intrinsic functions
15+ * ` C$CALLEDBY ` (#262 )
16+ * ` C$LIST-DIRECTORY ` (#264 )
17+ ### Fixed
18+ * Fix the message of COB_VERBOSE file sort (#260 )
19+ * Fix the process that checks moving x to numeric (#266 )
20+ ### Optimized
21+ * Optimize the file reading process (#257 )
22+
723## [ 1.0.17] - 2023-11-28
824### Added
925* Implement sorting a table (#251 )
Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ public CobolNumericField getNumericField() {
928928 *
929929 * @param field
930930 */
931- public void checkMoveStrNum (AbstractCobolField field ) {
931+ public void checkMoveStrNum (AbstractCobolField field ) throws CobolStopRunException {
932932 switch (this .getAttribute ().getType ()) {
933933 case CobolFieldAttribute .COB_TYPE_ALPHANUMERIC :
934934 case CobolFieldAttribute .COB_TYPE_ALPHANUMERIC_ALL :
@@ -946,8 +946,8 @@ public void checkMoveStrNum(AbstractCobolField field) {
946946 for (int i = 0 ; i < this .getSize (); i ++) {
947947 byte val = data .getByte (firstIndex + i );
948948 if (val < 0x30 || 0x39 < val ) {
949- System . out . println ("Numeric value is expected" );
950- // TODO STOP RUNを呼ぶ
949+ CobolUtil . runtimeError ("Numeric value is expected" );
950+ CobolStopRunException . stopRunAndThrow ( 1 );
951951 }
952952 }
953953 break ;
Original file line number Diff line number Diff line change @@ -2058,7 +2058,6 @@ AT_CLEANUP
20582058
20592059
20602060AT_SETUP ( [ MOVE x TO numeric] )
2061- AT_CHECK ( [ ${SKIP_TEST}] )
20622061
20632062AT_DATA ( [ prog.cob] , [
20642063 IDENTIFICATION DIVISION.
You can’t perform that action at this time.
0 commit comments