Menu

#1082 ArrayIndexOutOfBoundsException on loading a PO-project with multi-line plurals

5.8
closed-fixed
None
5
2023-09-27
2021-12-03
Nomadbyte
No

Attached is a test PO-file which on load triggers an error and fails to load the project :

"java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2" 

Tested with OmegaT 5.2.0 and 5.7.0.
Please see the header comments in the attached PO-file.
I'm not sure what is exactly causing the error. But the error can be avoided by either removing "#:" line in the header, or by making the multi-line plural cases into single-line ones; however, in that case, the last two plural cases would be missing after the load.

1 Attachments

Discussion

  • Nomadbyte

    Nomadbyte - 2021-12-04

    Attached is the OmegaT log file resulting from the error.

     
  • Hiroshi Miura

    Hiroshi Miura - 2021-12-11

    Thanks. I've pushed PR that reproduce the case and has a fix.
    https://github.com/omegat-org/omegat/pull/172

     
  • Hiroshi Miura

    Hiroshi Miura - 2022-09-17
    • status: open --> open-fixed
    • assigned_to: Hiroshi Miura
    • Group: 5.7 --> 5.8
     
  • Hiroshi Miura

    Hiroshi Miura - 2023-09-27
    • status: open-fixed --> closed-fixed
     
  • Hiroshi Miura

    Hiroshi Miura - 2023-09-27

    released 6.0

     

Log in to post a comment.

MongoDB Logo MongoDB