Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot infer type argument(s) for <R> map(Function<? super T,? extends R>) #13

Open
muralikk9 opened this issue Feb 14, 2017 · 1 comment

Comments

@muralikk9
Copy link

BestPriceFinder.java

public Stream<CompletableFuture> findPricesStream(String product) {
return shops.stream()
.map(shop -> CompletableFuture.supplyAsync(() -> shop.getPrice(product), executor))
.map(future -> future.thenApply(Quote::parse))
.map(future -> future.thenCompose(quote -> CompletableFuture.supplyAsync(() -> Discount.applyDiscount(quote), executor)));
}

@devangghugharawala
Copy link

This issue occurs on eclipse 4.6 version as mentioned here https://bugs.eclipse.org/bugs/show_bug.cgi?id=512486.. Update eclipse version or use Intellij.

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

No branches or pull requests

2 participants