From 0f1a188550f236376af5339ce162fb301dce91a2 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Mon, 7 Jul 2025 01:15:56 +0800 Subject: [PATCH] HDFS-17804. Recover test for hadoop-hdfs-native-client --- .../hadoop-hdfs-native-client/pom.xml | 25 +++++++++++++++++++ .../src/main/native/libhdfs/exception.c | 4 +-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml index a154dd5f7ad29e..ef4df0713c369b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml @@ -77,6 +77,31 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> junit test + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.jupiter + junit-jupiter-params + test + + + org.junit.platform + junit-platform-launcher + test + + + org.junit.vintage + junit-vintage-engine + test + diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/exception.c b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/exception.c index fec9a103b4e233..eedf77fb3e8561 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/exception.c +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/exception.c @@ -263,8 +263,8 @@ jthrowable newRuntimeError(JNIEnv *env, const char *fmt, ...) // Too bad... return getPendingExceptionAndClear(env); } - exc = constructNewObjectOfClass(env, &out, "RuntimeException", - "(java/lang/String;)V", jstr); + exc = constructNewObjectOfClass(env, &out, "java/lang/RuntimeException", + "(Ljava/lang/String;)V", jstr); (*env)->DeleteLocalRef(env, jstr); // Again, we'll either get an out of memory exception or the // RuntimeException we wanted.