From 0ab6c9d61bbbebc67de9037d139b7f4f84bf8cda Mon Sep 17 00:00:00 2001 From: bab2min Date: Wed, 3 Jul 2024 01:38:57 +0900 Subject: [PATCH] Fix compiler crash at clang-15 --- bindings/java/JniUtils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/java/JniUtils.hpp b/bindings/java/JniUtils.hpp index 10fd70be..f0cb47d9 100644 --- a/bindings/java/JniUtils.hpp +++ b/bindings/java/JniUtils.hpp @@ -924,7 +924,8 @@ namespace jni { return CppType{ env, v }; } - if (!env->IsInstanceOf(v, JIteratorBase::jClass)) throw std::runtime_error{ StringConcat_v.data()}; + // The following line crashes clang compiler. I don't know why, but it's not necessary. So I commented it out. + if (!env->IsInstanceOf(v, JIteratorBase::jClass)) throw std::runtime_error{ ""/*StringConcat_v.data()*/}; return CppType{ env, v }; } };