qt5base-lts/tests/auto
Volker Hilsheimer 2ef130a41d JNI: add generic support for array-types
The typeSignature for a type T[] is always "[" + typeSignature<t>, so we
can just implicitly support arrays of any known type. To prevent support
for multi-dimensional arrays, make sure that the underlying type is not
also an array.

By adding a QJniTypes::isArrayType in addition (that is true for any
type with a signature starting with '['), methods like
QJniObject::callMethod could then return a special QJniArray type that
provides array-specific functionality.

As a drive-by, and since all lines need to be touched to add braces,
replace std::is_same<>::value with std::is_same_v.

Change-Id: Iccadf03cfceb8544381a8f635bb54baeddf46c99
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-10-10 20:19:30 +02:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Replace the syncqt.pl script with syncqt tool 2022-09-27 13:12:11 +02:00
concurrent Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
corelib JNI: add generic support for array-types 2022-10-10 20:19:30 +02:00
dbus Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
gui Revert "tests: XFAIL tst_QOpenGL::bufferMapRange() on Wayland" 2022-10-07 13:20:12 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_QTcpServer: blacklist addressReusable on macOS 2022-10-10 19:22:32 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
printsupport tests: Fix tst_qprinterinfo for CUPS printer instances 2022-08-24 14:20:14 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
testlib Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
tools Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
wasm Fix QWasmWindowStack::topWindow when the stack is empty 2022-09-12 20:09:03 +02:00
widgets Replace qExchange with std::exchange 2022-10-07 18:11:36 +02:00
xml Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00