You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2024/06/12 08:47:00 UTC

[jira] [Commented] (OAK-10876) Oak 1.22 does not compile with JDK 11 anymore

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

Julian Reschke commented on OAK-10876:
--------------------------------------

So, as far as I understand:

- in trunk, this works, because the minimum JDK is 11, and JRE 11 is consistent (ByteByffer vs Buffer signatures)
- in 1.22, things work if compiled with JDK 8, but fail with JDK 11 (compile), as discussed in the SO question.

Choices:

- add explicit casts (see https://github.com/apache/jackrabbit-oak/commit/88d3418bd504401e8e75c7838e60cfb75b5a9fd8); drawback: this is code from lucene-core, which we really do not want to change unless for fixing actual bugs
- live with the fact that 1.22 needs to be compiled with JDK 8
- put in some magic into the 1.22 pom so we can target the JDK 8 JRE ([~kwin] - I'm sure you know how to do this)

> Oak 1.22 does not compile with JDK 11 anymore
> ---------------------------------------------
>
>                 Key: OAK-10876
>                 URL: https://issues.apache.org/jira/browse/OAK-10876
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)