This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push:
new f9a61cf29 CAY-2999 Modeler: A restricted method in java.lang.System
has been called
f9a61cf29 is described below
commit f9a61cf29d44a52ef445a7dadd05375e4704d054
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sat Aug 29 16:06:18 2026 -0400
CAY-2999 Modeler: A restricted method in java.lang.System has been called
---
RELEASE-NOTES.txt | 1 +
cayenne-modeler/pom.xml | 10 ++++++++--
pom.xml | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 6a42f675b..18403d18a 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -14,6 +14,7 @@ Date:
Changes/New Features:
CAY-2998 Modeler: clickabe "Target" column to navigate relationships
+CAY-2999 Modeler: A restricted method in java.lang.System has been called
CAY-3000 Modeler: unifying the main views of all model objects
----------------------------------
diff --git a/cayenne-modeler/pom.xml b/cayenne-modeler/pom.xml
index 887ecb3e6..2bcd28b78 100644
--- a/cayenne-modeler/pom.xml
+++ b/cayenne-modeler/pom.xml
@@ -113,6 +113,9 @@
"cayenne-assembly". Bound to "verify" rather than "package", as
"japp" bundles the module's
own jar into the launcher, and same-phase plugin ordering would
not guarantee it exists yet.
Each platform gets its own directory, so any combination of the
profiles can be active at once.
+
+ All three launchers grant FlatLaf native access, silencing the
JDK 24+ warning about its
+ call to the restricted "System::load". So what is needed is
"enable-native-access=ALL-UNNAMED"
-->
<profiles>
<!-- GENERIC cross-platform launcher: a runnable
"CayenneModeler.jar". Builds on any OS -->
@@ -135,6 +138,9 @@
<name>CayenneModeler</name>
<mainClass>org.apache.cayenne.modeler.Main</mainClass>
<os>java</os>
+
<manifestEntries>
+
<Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access>
+
</manifestEntries>
</configuration>
</execution>
</executions>
@@ -166,7 +172,7 @@
<icon>src/japplication/resources/CayenneModeler.icns</icon>
<os>mac</os>
<jvm0>21</jvm0>
-
<jvm0Options>-Xmx500m -Dapple.laf.useScreenMenuBar=true</jvm0Options>
+
<jvm0Options>-Xmx500m -Dapple.laf.useScreenMenuBar=true
--enable-native-access=ALL-UNNAMED</jvm0Options>
</configuration>
</execution>
</executions>
@@ -198,7 +204,7 @@
<icon>src/japplication/resources/CayenneModeler.ico</icon>
<os>windows</os>
<jvm0>21</jvm0>
-
<jvm0Options>-Xmx500m</jvm0Options>
+
<jvm0Options>-Xmx500m --enable-native-access=ALL-UNNAMED</jvm0Options>
</configuration>
</execution>
</executions>
diff --git a/pom.xml b/pom.xml
index 7b53787a6..fce32274f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,7 +82,7 @@
<apache-rat-plugin.version>0.18</apache-rat-plugin.version>
<dependency-maven-plugin.version>1.0</dependency-maven-plugin.version>
<exec-maven-plugin.version>3.6.3</exec-maven-plugin.version>
- <japp-maven-plugin.version>3.8</japp-maven-plugin.version>
+ <japp-maven-plugin.version>3.9</japp-maven-plugin.version>
<javacc-maven-plugin.version>2.6</javacc-maven-plugin.version>
<maven-antrun-plugin.version>3.2.0</maven-antrun-plugin.version>
<maven-assembly-plugin.version>3.8.0</maven-assembly-plugin.version>