summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qjsonarray.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-01-08 12:46:07 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-01-17 21:54:56 +0000
commit9d35561f6f6be125369e6020ce95a73b4aa6b51f (patch)
treecee36ee4ec2ad830e76531a2cde0b7f25dece8fd /src/corelib/serialization/qjsonarray.cpp
parenta57d5b1fd60b6b6848ef8ad9db237941229d7a23 (diff)
JNI: handle narrowing before creating a new Java string
Emit a warning if the string we get is too large for Java, and cast the size to jsize before calling JNI. For consistency, replace the Q_ASSERT in QJniArray's size check to use the same logic. Addresses header review comment; code was not handling this case before it got moved into the inline helper either. Pick-to: 6.9 Change-Id: I00d68509be8b5f7304dda2e824fa0ced0f8f8d48 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonarray.cpp')
0 files changed, 0 insertions, 0 deletions