lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-5704) Compile error in various DocValues formats with Java 8u20
Date Sat, 24 May 2014 13:52:01 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message