[ 
https://issues.apache.org/jira/browse/DERBY-7126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445553#comment-17445553
 ] 

Richard N. Hillegas commented on DERBY-7126:
--------------------------------------------

As feared, the Derby tests now fail spectacularly against JDK 18. When I try to 
run a single JUnit test...

{noformat}
java junit.textui.TestRunner 
org.apache.derbyTesting.functionTests.tests.lang.DistinctTest
{noformat}

...I get the following error

{noformat}
Could not create and run test suite: java.lang.UnsupportedOperationException: 
The Security Manager is deprecated and will be removed in a future release
{noformat}

In addition, under JDK 18 Derby now fails to install a default SecurityManager 
when the user boots the server. This causes the server to silently fail to boot.

{noformat}
java -jar /Users/rhillegas/derby/mainline/trunk/jars/sane/derbyrun.jar server 
start
{noformat}

According to the email thread mentioned above, to install a SecurityManager, 
you need to specify the following system property:

{noformat}
-Djava.security.manager=allow
{noformat}

I am inclined to make that change to the NetworkServer so that we can continue 
to limp along until the Open JDK folks figure out their replacement for the 
SecurityManager. We may want to update the Derby Security Guide to say that 
this property is required from JDK 18 onward, if you want to run with a 
SecurityManager.


> Make it possible to build and test Derby cleanly with OpenJDK 18
> ----------------------------------------------------------------
>
>                 Key: DERBY-7126
>                 URL: https://issues.apache.org/jira/browse/DERBY-7126
>             Project: Derby
>          Issue Type: Task
>          Components: Build tools
>    Affects Versions: 10.16.0.0
>            Reporter: Richard N. Hillegas
>            Assignee: Richard N. Hillegas
>            Priority: Major
>         Attachments: DERBY_7126_A.java, dcl_emc2sm.jar, 
> derby-7126-01-aa-regenerateSignedJars.diff, 
> derby-7126-02-aa-suppressDeprecationWarnings.diff
>
>
> Releases of Open JDK 18 can be found at https://jdk.java.net/178. We should 
> adjust Derby as necessary so that it builds cleanly (including javadoc) and 
> tests cleanly with this version of the platform.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to