Lucene - Core
  1. Lucene - Core
  2. LUCENE-5614

Add workaround for ANT bug to enable compile with Java 8 on ANT 1.8.3. and 1.8.4

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8, 4.9, 6.0
    • Component/s: general/build
    • Labels:
    • Lucene Fields:
      New

      Description

      Ant has the following bug introduced in ANT 1.8.3 and 1.8.4. Unfortunately many computers are on this version (and MacOSX on 1.8.2):
      https://issues.apache.org/bugzilla/show_bug.cgi?id=53347

      I would like to change to minimum ANT 1.9.0, but this would make MacOSX user unhappy. The provided patch is a workaround to set the compiler version to "javac1.7" via ANT property, if the broken versions are used with Java 1.8.

      1. LUCENE-5614.patch
        0.8 kB
        Uwe Schindler

        Activity

        Hide
        Robert Muir added a comment -

        this workaround looks great: +1

        Show
        Robert Muir added a comment - this workaround looks great: +1
        Hide
        ASF subversion and git services added a comment -

        Commit 1588228 from uschindler@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1588228 ]

        LUCENE-5614: Enable building on Java 8 using Apache Ant 1.8.3 or 1.8.4 by adding a workaround for the Ant bug

        Show
        ASF subversion and git services added a comment - Commit 1588228 from uschindler@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1588228 ] LUCENE-5614 : Enable building on Java 8 using Apache Ant 1.8.3 or 1.8.4 by adding a workaround for the Ant bug
        Hide
        ASF subversion and git services added a comment -

        Commit 1588229 from uschindler@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1588229 ]

        Merged revision(s) 1588228 from lucene/dev/trunk:
        LUCENE-5614: Enable building on Java 8 using Apache Ant 1.8.3 or 1.8.4 by adding a workaround for the Ant bug

        Show
        ASF subversion and git services added a comment - Commit 1588229 from uschindler@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1588229 ] Merged revision(s) 1588228 from lucene/dev/trunk: LUCENE-5614 : Enable building on Java 8 using Apache Ant 1.8.3 or 1.8.4 by adding a workaround for the Ant bug
        Hide
        ASF subversion and git services added a comment -

        Commit 1588231 from uschindler@apache.org in branch 'dev/branches/lucene_solr_4_8'
        [ https://svn.apache.org/r1588231 ]

        Merged revision(s) 1588229 from lucene/dev/branches/branch_4x:
        Merged revision(s) 1588228 from lucene/dev/trunk:
        LUCENE-5614: Enable building on Java 8 using Apache Ant 1.8.3 or 1.8.4 by adding a workaround for the Ant bug

        Show
        ASF subversion and git services added a comment - Commit 1588231 from uschindler@apache.org in branch 'dev/branches/lucene_solr_4_8' [ https://svn.apache.org/r1588231 ] Merged revision(s) 1588229 from lucene/dev/branches/branch_4x: Merged revision(s) 1588228 from lucene/dev/trunk: LUCENE-5614 : Enable building on Java 8 using Apache Ant 1.8.3 or 1.8.4 by adding a workaround for the Ant bug
        Hide
        Uwe Schindler added a comment -

        Close issue after release of 4.8.0

        Show
        Uwe Schindler added a comment - Close issue after release of 4.8.0

          People

          • Assignee:
            Uwe Schindler
            Reporter:
            Uwe Schindler
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development