This is an automated email from the ASF dual-hosted git repository.
mboehm7 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new e1377d24b8 [MINOR] Fix warnings from change to JDK 17 (security
manager, strictfp)
e1377d24b8 is described below
commit e1377d24b85f06166000b1ecee8e6d9c54cba84a
Author: Matthias Boehm <[email protected]>
AuthorDate: Thu May 8 17:47:59 2025 +0200
[MINOR] Fix warnings from change to JDK 17 (security manager, strictfp)
---
src/main/java/org/apache/sysds/runtime/io/hdf5/H5BufferBuilder.java | 2 +-
.../java/org/apache/sysds/test/usertest/pythonapi/StartupTest.java | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/sysds/runtime/io/hdf5/H5BufferBuilder.java
b/src/main/java/org/apache/sysds/runtime/io/hdf5/H5BufferBuilder.java
index 176eb5877a..8303d918df 100644
--- a/src/main/java/org/apache/sysds/runtime/io/hdf5/H5BufferBuilder.java
+++ b/src/main/java/org/apache/sysds/runtime/io/hdf5/H5BufferBuilder.java
@@ -99,7 +99,7 @@ public class H5BufferBuilder {
}
}
- public strictfp Double getNewVal(double d) {
+ public Double getNewVal(double d) {
return d;
}
diff --git
a/src/test/java/org/apache/sysds/test/usertest/pythonapi/StartupTest.java
b/src/test/java/org/apache/sysds/test/usertest/pythonapi/StartupTest.java
index 9e7cda13ee..549d4cde7b 100644
--- a/src/test/java/org/apache/sysds/test/usertest/pythonapi/StartupTest.java
+++ b/src/test/java/org/apache/sysds/test/usertest/pythonapi/StartupTest.java
@@ -37,9 +37,11 @@ import java.util.List;
/** Simple tests to verify startup of Python Gateway server happens without
crashes */
public class StartupTest {
private LoggingUtils.TestAppender appender;
+ @SuppressWarnings("removal")
private SecurityManager sm;
@Before
+ @SuppressWarnings("removal")
public void setUp() {
appender = LoggingUtils.overwrite();
sm = System.getSecurityManager();
@@ -49,6 +51,7 @@ public class StartupTest {
}
@After
+ @SuppressWarnings("removal")
public void tearDown() {
LoggingUtils.reinsert(appender);
System.setSecurityManager(sm);
@@ -129,6 +132,7 @@ public class StartupTest {
);
}
+ @SuppressWarnings("removal")
class NoExitSecurityManager extends SecurityManager {
@Override
public void checkPermission(Permission perm) { }