Bug 538126

Summary: Compiler type inference regression with jdt 3.14/eclipse 4.8 and source level 1.8 or higher
Product: [Eclipse Project] JDT Reporter: Matthew Davis <matt.davis>
Component: CoreAssignee: Stephan Herrmann <stephan.herrmann>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ignacio, stephan.herrmann
Version: 4.8Keywords: regression
Target Milestone: 4.11   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Minimum java example to trigger bug none

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 ***