You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2017/10/17 21:27:01 UTC

[jira] [Updated] (BOOKKEEPER-1049) Run BookKeeper on Java9

     [ https://issues.apache.org/jira/browse/BOOKKEEPER-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Kelly updated BOOKKEEPER-1049:
-----------------------------------
    Labels: ghmigrated iktriage0  (was: iktriage0)

> Run BookKeeper on Java9
> -----------------------
>
>                 Key: BOOKKEEPER-1049
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-1049
>             Project: Bookkeeper
>          Issue Type: Improvement
>         Environment: java9
>            Reporter: Enrico Olivelli
>            Assignee: Enrico Olivelli
>              Labels: ghmigrated, iktriage0
>             Fix For: 4.6.0
>
>
> I am tring to run BookKeeper on Java9, a part from simple issues:
> - exclude the transitive dependency to jdk.tools in bookkeeer-benchmarks
> - fix a warning due to the fact the Class.forName in java9 is deprecated and we are running javac with the "Werror" option (warning = error)
> we have a real stopper, in fact we want to access the low level ID of FileDescriptors using the reflaction and by default this is not allowed.
> This is the error:
> {code}
> java.lang.AssertionError
>         at org.apache.bookkeeper.util.NativeIO.getFieldByReflection(NativeIO.java:63)
>         at org.apache.bookkeeper.util.NativeIO.getSysFileDescriptor(NativeIO.java:75)
>         at org.apache.bookkeeper.bookie.JournalChannel.<init>(JournalChannel.java:218)
>         at org.apache.bookkeeper.bookie.JournalChannel.<init>(JournalChannel.java:97)
>         at org.apache.bookkeeper.bookie.JournalChannel.<init>(JournalChannel.java:86)
>         at org.apache.bookkeeper.bookie.UpgradeTest.writeJournal(UpgradeTest.java:83)
>         at org.apache.bookkeeper.bookie.UpgradeTest.newV1JournalDirectory(UpgradeTest.java:114)
>         at org.apache.bookkeeper.bookie.UpgradeTest.testUpgradeV1toCurrent(UpgradeTest.java:192)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)