qt6-bb10/tests/auto/corelib
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
..
animation Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
global Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
io tst_qurluts46: Support \u escapes in the test data 2022-10-06 14:26:25 +02:00
itemmodels Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
kernel JNI: add generic support for array-types 2022-10-10 20:19:30 +02:00
mimetypes Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
platform Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
plugin Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
serialization Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
text Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
thread Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
time Support serializing time-zone fields in date-times more flexibly 2022-09-29 14:42:56 +02:00
tools 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