-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #654 from smeup/bugfix/LS24004772/MOVEA-ProjectedA…
…rrayValue-to-ConcreteArrayValue Bugfix/LS24004772/`MOVEA` from `ProjectedArrayValue` to `ConcreteArrayValue`
- Loading branch information
Showing
11 changed files
with
337 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
V* ============================================================== | ||
D* 05/11/24 | ||
D* Purpose: Must fire the following errors during execution of | ||
D* C MOVEA(P) DS1_ARR1 ARR1 | ||
D* line 18 - "Factor 2 and Result with different type and size." | ||
V* ============================================================== | ||
D DS1 DS 100 | ||
D DS1_ARR1 5 3 DIM(3) INZ(12.345) | ||
D ARR1 S 3 0 DIM(5) INZ(9) | ||
D TMP S 7 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEA(P) DS1_ARR1 ARR1 | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
V* ============================================================== | ||
D* 05/11/24 | ||
D* Purpose: Must fire the following errors during execution of | ||
D* C MOVEA(P) DS1_ARR1 ARR1 | ||
D* line 18 - "Factor 2 and Result with different type and size." | ||
V* ============================================================== | ||
D DS1 DS 100 | ||
D DS1_ARR1 3 0 DIM(3) INZ(123) | ||
D ARR1 S 5 3 DIM(5) INZ(9.9) | ||
D TMP S 7 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEA(P) DS1_ARR1 ARR1 | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
31 changes: 31 additions & 0 deletions
31
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00155.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
V* ============================================================== | ||
V* 05/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA between a DS field declared as array and a standalone | ||
O * array. Both as integer. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix: | ||
O * `ProjectedArrayValue cannot be cast to | ||
O * class ConcreteArrayValue` | ||
V* ============================================================== | ||
D DS1 DS 100 | ||
D DS1_ARR1 2 0 DIM(5) INZ(1) | ||
D ARR1 S 2 0 DIM(5) INZ(2) | ||
D TMP S 2 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEA(P) DS1_ARR1 ARR1 #ProjectedArrayValue cannot be cast to class ConcreteArrayValue | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
32 changes: 32 additions & 0 deletions
32
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00156.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
V* ============================================================== | ||
V* 05/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA between a DS field declared as array and a standalone | ||
O * array. Both as integer. | ||
O * Size of DS field as array is lower than standalone. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix: | ||
O * `ProjectedArrayValue cannot be cast to | ||
O * class ConcreteArrayValue` | ||
V* ============================================================== | ||
D DS1 DS 100 | ||
D DS1_ARR1 2 0 DIM(3) INZ(1) | ||
D ARR1 S 2 0 DIM(5) INZ(2) | ||
D TMP S 2 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEA(P) DS1_ARR1 ARR1 #ProjectedArrayValue cannot be cast to class ConcreteArrayValue | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
32 changes: 32 additions & 0 deletions
32
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00157.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
V* ============================================================== | ||
V* 05/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA between a DS field declared as array and a standalone | ||
O * array. Both as integer. | ||
O * Size of DS field as array is greater than standalone. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix: | ||
O * `ProjectedArrayValue cannot be cast to | ||
O * class ConcreteArrayValue` | ||
V* ============================================================== | ||
D DS1 DS 100 | ||
D DS1_ARR1 2 0 DIM(5) INZ(1) | ||
D ARR1 S 2 0 DIM(3) INZ(2) | ||
D TMP S 2 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEA(P) DS1_ARR1 ARR1 #ProjectedArrayValue cannot be cast to class ConcreteArrayValue | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
32 changes: 32 additions & 0 deletions
32
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00158.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
V* ============================================================== | ||
V* 05/11/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA between a DS field declared as array and a standalone | ||
O * array. DS field array is declared as decimal; | ||
O * standalone array as integer. | ||
O * Size of DS field as array is lower than standalone. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix: | ||
O * `Issue arose while setting field DS1_ARR1` | ||
V* ============================================================== | ||
D DS1 DS 100 | ||
D DS1_ARR1 5 3 DIM(3) INZ(1.2) | ||
D ARR1 S 5 0 DIM(5) INZ(2) | ||
D TMP S 5 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEA(P) DS1_ARR1 ARR1 #Issue arose while setting field DS1_ARR1 | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR1) | ||
C EVAL TMP=%CHAR(ARR1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
Oops, something went wrong.