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

ecj-lint not recognizing valid java 9 syntax

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: main (9.0)
    • Fix Version/s: main (9.0)
    • Component/s: general/build
    • Labels:
    • Lucene Fields:
      New

      Description

      [ecj-lint] 6. ERROR in /home/gus/projects/apache/lucene-solr/code/lucene-solr/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java (at line 177)
      [ecj-lint] new ConditionalExpiringCache<>(new Predicate<>() {
      [ecj-lint] ^^^^^^^^^
      [ecj-lint] '<>' cannot be used with anonymous classes

      Writing it asĀ 

      new ConditionalExpiringCache<>(new Predicate<Entry<String, VersionedCollectionProps>>() {

      will pass precommit, but now that we are in java 11 the simpler syntax should be allowed.

        Attachments

        1. LUCENE-8786.patch
          1 kB
          Uwe Schindler

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: