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

ecj-lint not recognizing valid java 9 syntax

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.0
    • general/build
    • 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

              uschindler Uwe Schindler
              gus Gus Heck
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: