@@ -746,8 +746,6 @@ int main()
746
746
assert (jni::Make<std::vector<jboolean>>(env, jni::Make<jni::Array<jni::jboolean>>(env, vec)) == vec);
747
747
748
748
749
- jni::MakeNativeMethod<decltype (Method), Method>(" name" );
750
- jni::MakeNativeMethod<decltype (StaticMethod), StaticMethod>(" name" );
751
749
jni::MakeNativeMethod<decltype (&Method), &Method>(" name" );
752
750
jni::MakeNativeMethod<decltype (&StaticMethod), &StaticMethod>(" name" );
753
751
@@ -773,7 +771,7 @@ int main()
773
771
774
772
env.functions ->RegisterNatives = [] (JNIEnv*, jclass, const JNINativeMethod* m, jint len) -> jint
775
773
{
776
- assert (len = = 6 );
774
+ assert (len < = 6 );
777
775
std::copy (m, m + len, methods);
778
776
return JNI_OK;
779
777
};
@@ -784,7 +782,6 @@ int main()
784
782
METHOD (" true" , &Peer::True),
785
783
METHOD (" false" , &Peer::False),
786
784
METHOD (" void" , &Peer::Void),
787
- METHOD (" static" , Peer::Static),
788
785
METHOD (" static" , &Peer::Static),
789
786
jni::MakeNativePeerMethod (" static" , [] (JNIEnv&, Peer&) {}));
790
787
0 commit comments