Commit a3ef035
committed
Fix code generation issues when modifying sequences in PObserve mode
Fixes two problems when compiling sequence modifying operations in PObserve mode:
1. When calling ArrayList#set(), cast the index to an int; otherwise it fails
Java compilation.
2. When calling ArrayList#remove(), cast the index to an int, otherwise it calls
the wrong overload, leading to incorrect behavior.1 parent bead65f commit a3ef035
File tree
1 file changed
+15
-1
lines changed- Src/PCompiler/CompilerCore/Backend/PObserve
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
388 | 394 | | |
389 | 395 | | |
390 | 396 | | |
| |||
510 | 516 | | |
511 | 517 | | |
512 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
513 | 525 | | |
514 | 526 | | |
515 | 527 | | |
| |||
597 | 609 | | |
598 | 610 | | |
599 | 611 | | |
600 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
601 | 615 | | |
602 | 616 | | |
603 | 617 | | |
| |||
0 commit comments