You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2014/05/24 16:06:01 UTC

[jira] [Resolved] (LUCENE-5704) Compile error in various DocValues formats with Java 8u20

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

Uwe Schindler resolved LUCENE-5704.
-----------------------------------

    Resolution: Fixed

Please reopen when releasing 4.8.2, because this bug prevents compilation on recent JDK 8.

> Compile error in various DocValues formats with Java 8u20
> ---------------------------------------------------------
>
>                 Key: LUCENE-5704
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5704
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.8.1
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>              Labels: Java8
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5704.patch
>
>
> When compiling the codecs with Java 8 update 20 (coming soon), we fail: The constructors initialize a final closeable field inside a try block, which makes the field possibly undefined in the finally block.
> Previous Java versions somehow did not detect this bug, but it is a real one. Final fields must be initialized before they are used. Earlier compilers did not detect this bug, but I think it is not buggy, because IOUtils can handle null.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org