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