Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.2.0 FF
-
None
-
-
2021wk20PO2, 2021wk22PO2, 2021wk24PO2
Description
During refactoring of QtMultimedia module, some of the code clear exceptions manually and have different behavior if there was/wasn't an exception. With the QJniObject in 6.1 it's not possible to do that because exceptions are cleared internally and a default value is returned, this would be fine for object values where we could check for isValid() after the call, but with primitive values that doesn't work.
For that reason we need to add a way for QJniObject to return the details of the exceptions of the call instead of the result only. This probably would be something similar to std::expected.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-93800 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
349496,4 | Android: Use public Jni APIs as possible | wip/qt6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
350588,9 | JNI: Introduce QJniObjectResult to handle exceptions better | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
351557,5 | WIP: Make the last JNI call's exception accessible to the user | dev | qt/qtbase | Status: DEFERRED | -2 | 0 |