Fix string array parameter check with jni
(cherry picked from commit 456b7733fc
)
This commit is contained in:
parent
6116174d49
commit
584deb807e
|
@ -889,7 +889,7 @@ static Variant::Type get_jni_type(const String& p_type) {
|
|||
{"java.lang.String",Variant::STRING},
|
||||
{"[I",Variant::INT_ARRAY},
|
||||
{"[F",Variant::REAL_ARRAY},
|
||||
{"[java.lang.String",Variant::STRING_ARRAY},
|
||||
{"[Ljava.lang.String;",Variant::STRING_ARRAY},
|
||||
{NULL,Variant::NIL}
|
||||
};
|
||||
|
||||
|
@ -920,7 +920,7 @@ static const char* get_jni_sig(const String& p_type) {
|
|||
{"java.lang.String","Ljava/lang/String;"},
|
||||
{"[I","[I"},
|
||||
{"[F","[F"},
|
||||
{"[java.lang.String","[Ljava/lang/String;"},
|
||||
{"[Ljava.lang.String;","[Ljava/lang/String;"},
|
||||
{NULL,"V"}
|
||||
};
|
||||
|
||||
|
|
|
@ -1552,7 +1552,7 @@ static Variant::Type get_jni_type(const String& p_type) {
|
|||
{"[I",Variant::INT_ARRAY},
|
||||
{"[B",Variant::RAW_ARRAY},
|
||||
{"[F",Variant::REAL_ARRAY},
|
||||
{"[java.lang.String",Variant::STRING_ARRAY},
|
||||
{"[Ljava.lang.String;",Variant::STRING_ARRAY},
|
||||
{"org.godotengine.godot.Dictionary", Variant::DICTIONARY},
|
||||
{NULL,Variant::NIL}
|
||||
};
|
||||
|
@ -1588,7 +1588,7 @@ static const char* get_jni_sig(const String& p_type) {
|
|||
{"[I","[I"},
|
||||
{"[B","[B"},
|
||||
{"[F","[F"},
|
||||
{"[java.lang.String","[Ljava/lang/String;"},
|
||||
{"[Ljava.lang.String;","[Ljava/lang/String;"},
|
||||
{NULL,"V"}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue