[ 
https://issues.apache.org/jira/browse/LUCENE-8786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830525#comment-16830525
 ] 

ASF subversion and git services commented on LUCENE-8786:
---------------------------------------------------------

Commit 87c16882ae3606efd1ff88fd369ca964685d3ae9 in lucene-solr's branch 
refs/heads/master from Uwe Schindler
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=87c1688 ]

LUCENE-8738, LUCENE-8786: Fix ECJ linter to accept Java 11 syntax


> 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
>              Labels: Java11
>             Fix For: master (9.0)
>
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to