You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2019/04/30 17:11:00 UTC

[jira] [Commented] (SOLR-13435) ecj-lint not recognizing valid java 9 syntax

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

Uwe Schindler commented on SOLR-13435:
--------------------------------------

This may be a config problem. ECJ is already on latest version, but the properties file may be outdated. Does it pass inside Eclipse?

> ecj-lint not recognizing valid java 9 syntax
> --------------------------------------------
>
>                 Key: SOLR-13435
>                 URL: https://issues.apache.org/jira/browse/SOLR-13435
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Build
>    Affects Versions: master (9.0)
>            Reporter: Gus Heck
>            Priority: Major
>
> {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