Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125287

Android: Template args don't work for String[] using jobjectArray

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.7, 6.8
    • 6.6.3
    • Extras: Android
    • None
    • Android
    • 8473b9ad1 (dev), f6b4a4849 (6.7)
    • 2024wk22s2FOQtforAndroid

    Description

      QJniEnvironment::findStaticMethod and QJniObject::callStaticMethod do not work when using a jobjectarray in the template args to specify a function with a String[] as the return type. Specifying the signature with [Ljava/lang/String; does though. https://doc.qt.io/qt-6/qjniobject.html#method-signatures has a jstringArray in its documentation but that is not a thing. Looking at qjnitypes.h in typeSignature(), there is no signature for a String Array.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtandroidteam Qt Android Team
              htramsey Holden Ramsey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes