File 0581-jinterface-Fix-tests-to-always-create-class-files-in.patch of Package erlang

From 4c2bb1b9cfb6dc3c0468151b8a18846c02793dfd Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Mon, 19 May 2025 19:27:17 +0200
Subject: [PATCH 1/5] jinterface: Fix tests to always create class files in CWD

Even if tests has been built with links to java files.
---
 lib/jinterface/test/jinterface_SUITE_data/Makefile.src | 2 +-
 lib/jinterface/test/nc_SUITE_data/Makefile.src         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/jinterface/test/jinterface_SUITE_data/Makefile.src b/lib/jinterface/test/jinterface_SUITE_data/Makefile.src
index 910e3536b0..012ba2072e 100644
--- a/lib/jinterface/test/jinterface_SUITE_data/Makefile.src
+++ b/lib/jinterface/test/jinterface_SUITE_data/Makefile.src
@@ -62,6 +62,6 @@ clean:
 	-del /F /Q $(CLASS_FILES)
 
 $(CLASS_FILES) : $(JAVA_FILES)
-	$(JAVAC) -encoding UTF-8 -classpath $(CLASSPATH) $(JAVA_FILES)
+	$(JAVAC) -d . -encoding UTF-8 -classpath $(CLASSPATH) $(JAVA_FILES)
 
 #
diff --git a/lib/jinterface/test/nc_SUITE_data/Makefile.src b/lib/jinterface/test/nc_SUITE_data/Makefile.src
index 17325c3abc..ef07303904 100644
--- a/lib/jinterface/test/nc_SUITE_data/Makefile.src
+++ b/lib/jinterface/test/nc_SUITE_data/Makefile.src
@@ -48,6 +48,6 @@ clean:
 	-del /F /Q $(CLASS_FILES)
 
 $(CLASS_FILES) : $(JAVA_FILES)
-	$(JAVAC) -encoding UTF-8 -classpath $(CLASSPATH) $(JAVA_FILES)
+	$(JAVAC) -d . -encoding UTF-8 -classpath $(CLASSPATH) $(JAVA_FILES)
 
 #
-- 
2.51.0

openSUSE Build Service is sponsored by