You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Richard N. Hillegas (Jira)" <ji...@apache.org> on 2022/03/24 16:18:00 UTC

[jira] [Commented] (DERBY-7137) Compile 10.16 into Java 17 byte code so that it won't run on earlier platforms

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

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

Attaching derby-7137-01-aa-compileToJava17byteCode.diff. This change makes Derby compile into Java 17 byte code. With this change, Derby builds cleanly (including javadoc) and the tests run cleanly on Java 17 (both with classpath and modulepath) when you set -Djava.security.manager=allow.

Touches the following file:

{noformat}
M       tools/ant/properties/defaultcompiler.properties

Change min.version to 17.
{noformat}


> Compile 10.16 into Java 17 byte code so that it won't run on earlier platforms
> ------------------------------------------------------------------------------
>
>                 Key: DERBY-7137
>                 URL: https://issues.apache.org/jira/browse/DERBY-7137
>             Project: Derby
>          Issue Type: Task
>          Components: Build tools
>    Affects Versions: 10.16.0.0
>            Reporter: Richard N. Hillegas
>            Assignee: Richard N. Hillegas
>            Priority: Major
>
> The 10.16 network server must be run with -Djava.security.manager=allow in order to enable the Java Security Manager over the objections of https://openjdk.java.net/jeps/411. The meaning of that flag has changed since Java 11. To minimize confusion, we want to prevent people from accidentally running 10.16 on Java platforms older than Java 17.



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