Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4183

Simplify CompoundFileDirectory opening in 4.x

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA, 6.0
    • None
    • None
    • New

    Description

      The compiler bug in JDK 8EA let me look at the code again. I opened bug report with simple test case at Oracle, but the code on our side is still too complicated to understand.

      The attached path for 4.x removes the nested try-finaly block and simpliefies success=true handling (which was in fact broken). It uses a more try-with-resources like approach with only one finally block.

      Attachments

        1. LUCENE-4183.patch
          4 kB
          Uwe Schindler
        2. LUCENE-4183.patch
          4 kB
          Uwe Schindler
        3. LUCENE-4183-priorE-pattern.patch
          4 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: