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

Christine Poerschke commented on LUCENE-6885:
---------------------------------------------

Thanks Adrien. Just been trying with the {{<String,Integer>}} also and I think 
it's something to do with the {{?}} and {{:}} because on its own {{final 
Map<String,Integer> segmentReaders0 = Collections.<String,Integer>emptyMap();}} 
is fine but in the real use it gives a different error
{code}
    [javac] 
...branches\branch_5x\lucene\core\src\java\org\apache\lucene\index\StandardDirectoryReader.java:140:
 error: incompatible types: Map<? extends Object,? extends Object> cannot be 
converted to Map<String,Integer>
    [javac]     final Map<String,Integer> segmentReaders = (oldReaders == null 
? Collections.<String,Integer>emptyMap() : new HashMap<>(oldReaders.size()));
    [javac]                                                                    ^
{code}
and actually copying and pasting this, the {{^}} both in this and the previous 
error pointed in that direction also. Some parentheses should fix it then.

> StandardDirectoryReader (initialCapacity) tweaks
> ------------------------------------------------
>
>                 Key: LUCENE-6885
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6885
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: LUCENE-6885.patch, LUCENE-6885.patch
>
>
> proposed patch against trunk to follow



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to