Skip to content

Conversation

@BobHanson
Copy link
Owner

accepted, but not fully resolved, as not clear where the error was coming from.

abego and others added 3 commits July 22, 2018 00:41
Eclipse 4.7.3a reports Java problem:

    'The method flatten(Node<T>, IntFunction<T[]>) in the type Nodes is not
     applicable for the arguments (Node, IntFunction)'

when compiling ReferencePipeline.java.

Cause
=====

It looks like the compiler cannot correctly infer the (generic) types
of the method calls in the argument list of flatten.

Solution
========

Introduce an extra temporary variable 'node' with explicit type 'Node<A>'
holding the value of the expression originally passed to flatten. This
way the correct types are used in the method call and the error message
disappears.
transpiler better handling of no-finals lambda expressions and lambda methods
Bug: 'The method flatten ... is not applicable for the arguments ...'
@BobHanson BobHanson merged commit 3622d79 into BobHanson:master Sep 23, 2019
BobHanson added a commit that referenced this pull request Feb 2, 2020
information about differences between SwingJS and Java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants