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] [Updated] (LUCENE-8786) ecj-lint not recognizing valid java 9 syntax
Date Tue, 30 Apr 2019 17:22:00 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-8786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Uwe Schindler updated LUCENE-8786:
----------------------------------
    Attachment: LUCENE-8786.patch

> ecj-lint not recognizing valid java 9 syntax
> --------------------------------------------
>
>                 Key: LUCENE-8786
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8786
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: master (9.0)
>            Reporter: Gus Heck
>            Priority: Major
>         Attachments: LUCENE-8786.patch
>
>
> {code:java}
> [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{code}
> Writing it asĀ 
> {code:java}
> new ConditionalExpiringCache<>(new Predicate<Entry<String, VersionedCollectionProps>>()
{{code}
> will pass precommit, but now that we are in java 11 the simpler syntax should be allowed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message