Yordan Gigov created NETBEANS-2338:
--------------------------------------

             Summary: Type inference failure with generics and lambdas
                 Key: NETBEANS-2338
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2338
             Project: NetBeans
          Issue Type: Bug
          Components: java - Compiler, java - Editor
    Affects Versions: 10.0
            Reporter: Yordan Gigov
         Attachments: EntityWithId.java

In the attached example, the compiler detects types properly in the
{code:java}
listMapperCollector(){code}
method, but not in the
{code:java}
listMapperCollector(Comparator<ID> sorter){code}
method, where it fails on determining the type of _e_ in
{code:java}
e -> e.getId(){code}
on line 31.

The code is for Java 8, and compiles normally with OpenJDK 8.

Aside from one or two exceptions (because of the types of their primary keys), 
all of my JPA entity classes implement this interface.



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

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to