We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 154a5e8 commit 77ee1e4Copy full SHA for 77ee1e4
include/jni/string.hpp
@@ -10,7 +10,7 @@
10
11
namespace jni
12
{
13
- struct StringTag { static constexpr auto Name() { return "java/lang/String"; } };
+ struct StringTag : public ObjectTag { static constexpr auto Name() { return "java/lang/String"; } };
14
15
template <>
16
struct UntaggedObjectType<StringTag> { using Type = jstring; };
test/high_level.cpp
@@ -127,6 +127,7 @@ int main()
127
jni::Object<Base> base(derived);
128
base = derived;
129
(void)[] () -> jni::Object<Base> { return jni::Object<Derived>(); };
130
+ (void)[] () -> jni::Object<> { return jni::String(); };
131
132
/// Constructor
133
0 commit comments