Bug 538126 - Compiler type inference regression with jdt 3.14/eclipse 4.8 and source level 1.8 or higher
Summary: Compiler type inference regression with jdt 3.14/eclipse 4.8 and source level...
Status: CLOSED DUPLICATE of bug 536860
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal with 3 votes (vote)
Target Milestone: 4.11   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-08-21 11:22 EDT by Matthew Davis CLA
Modified: 2020-01-30 17:26 EST (History)
2 users (show)

See Also:


Attachments
Minimum java example to trigger bug (381 bytes, text/x-java)
2018-08-21 11:23 EDT, Matthew Davis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Davis CLA 2018-08-21 11:22:17 EDT
Gives error on attached file:

The method combineLatest(Flowable.Function<? super Object[],? extends R>, int) in the type Flowable<T> is not applicable for the arguments (Flowable.Function<capture#1-of ? super Object[],capture#2-of ? extends R>, int)


When source level is 1.8 or higher, works with 1.7 or lower.  Worked in previous  jdt 3.13 and previous eclipse.


Attached file is minimum example of error seen in this project:
https://github.com/ReactiveX/RxJava
Comment 1 Matthew Davis CLA 2018-08-21 11:23:05 EDT
Created attachment 275472 [details]
Minimum java example to trigger bug
Comment 2 Ignacio Baca Moreno-Torres CLA 2018-09-20 15:16:57 EDT
I think this is a reasonable critical bug, that should be included in the 4.9 release, although look like this is already too late. The last years eclipse has been having problems to compile RxJava forcing people to move to other ides bc it is not even able to compile. OTOH, when some one finally gets this bugs usually fix it pretty quickly (weeks), sadly to pick up the bug takes much much longer (years).
Comment 3 Stephan Herrmann CLA 2018-10-19 18:16:22 EDT
(In reply to Matthew Davis from comment #1)
> Created attachment 275472 [details]
> Minimum java example to trigger bug

Thanks for the example.

Reproduced: ecj rejects the program since 4.8 M5.

One might guess bug 529518 to have caused this (haven't yet bisected).

Assigning to self with a tentative target but I'm unable to make any promise yet.
Comment 4 Stephan Herrmann CLA 2019-05-18 20:01:14 EDT
too much on my plate for 4.12
Comment 5 Stephan Herrmann CLA 2020-01-30 17:26:13 EST
This got fixed in 4.11 via bug 536860.

*** This bug has been marked as a duplicate of bug 536860 ***