HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
14 stars 3 forks source link

Change return value type of Document.size() from int to long #354

Closed klehmann closed 1 year ago

klehmann commented 1 year ago

The size() method computes the sum of item value lengths (int values) and the sizes of document attachments (int values), so we might get an overflow when our return value type is an int, especially with the new large item support enabled.