This is an automated email from the ASF dual-hosted git repository. slfan1989 pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new 6b75775c17d HDFS-17804. [JDK17] Recover test for hadoop-hdfs-native-client (#7782) Contributed by Cheng Pan. 6b75775c17d is described below commit 6b75775c17d275f2198a750efa8c789d3483c174 Author: Cheng Pan <cheng...@apache.org> AuthorDate: Wed Jul 9 08:36:39 2025 +0800 HDFS-17804. [JDK17] Recover test for hadoop-hdfs-native-client (#7782) Contributed by Cheng Pan. * HDFS-17804. [JDK17] Recover test for hadoop-hdfs-native-client. Reviewed-by: Gautham Banasandra <gaur...@apache.org> Signed-off-by: Shilun Fan <slfan1...@apache.org> --- .../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 a154dd5f7ad..ef4df0713c3 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"> <artifactId>junit</artifactId> <scope>test</scope> </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-engine</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-params</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.platform</groupId> + <artifactId>junit-platform-launcher</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.vintage</groupId> + <artifactId>junit-vintage-engine</artifactId> + <scope>test</scope> + </dependency> </dependencies> <build> 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 fec9a103b4e..eedf77fb3e8 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. --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org