Uwe Schindler created LUCENE-5704:
-------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]