[
https://issues.apache.org/jira/browse/LUCENE-5704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008130#comment-14008130
]
ASF subversion and git services commented on LUCENE-5704:
---------------------------------------------------------
Commit 1597299 from [~thetaphi] in branch 'dev/trunk'
[ https://svn.apache.org/r1597299 ]
LUCENE-5704: Fix compilation error with Java 8u20
> 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.8.2, 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: [email protected]
For additional commands, e-mail: [email protected]