<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 01/09/2023 20:45, Ron Pressler wrote:
<blockquote
cite="mid:6960C78D-DB42-4047-B384-30A8AB89C8EB@oracle.com"
type="cite">
<blockquote type="cite">
<pre wrap="">On 1 Sep 2023, at 19:01, Glavo <a class="moz-txt-link-rfc2396E" href="mailto:zjx001202@gmail.com"><zjx001202@gmail.com></a> wrote:
You keep emphasizing "end user", trying to prove that you are giving more power to the end user.
Is this real? It doesn't look like it. You are just forcing more obligations on them.
</pre>
</blockquote>
<pre wrap="">
Quite the opposite! An application developer (to clarify yet again, the user we’re talking about is the application developer as opposed to the library developer; the end user *of the application* obviously need not even see any of these flags)
</pre>
</blockquote>
As I pointed out in my earlier message, although the end user of the
application does not need to specify the flag, they do see the scary
warning written to stderr when the flag is not present. This will
happen when an a older version of an application that uses JNI is
run on a newer version of the JDK.<br>
<br>
This will scare these end users and is likely to reinforce the
incorrect perception that Java is unsafe and Java-based applications
should be avoided.<br>
<br>
One way to avoid this issue would be to only show the warning for
applications built on JDK 22 and above that don't specify the new
flag. Applications built using older versions of Java would not show
the warning.<br>
<br>
Simon<br>
</body>
</html>