| Summary: | Eclipse 4.6 (Neon) and Java 1.8: Maven build passes; yet, Eclipse displays errors "Type mismatch: cannot convert..." | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dejan Stojadinović <dejan2609> | ||||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||||
| Status: | CLOSED INVALID | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | dejan2609, stephan.herrmann | ||||||
| Version: | 4.6 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 10 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Possible related bugs: * 464496 - [1.8][compiler] Type Type mismatch: cannot convert from Integer to long * 491934 - [regression] [compiler] Unchecked warning turned into type mismatch compile error in Neon * 496942 Eclipse Neon stop compiling Java code and make me to do an unnecessary explicit casting Possible related bugs (with proper URLs): * https://bugs.eclipse.org/bugs/show_bug.cgi?id=464496 - [1.8][compiler] Type Type mismatch: cannot convert from Integer to long * https://bugs.eclipse.org/bugs/show_bug.cgi?id=491934 - [regression] [compiler] Unchecked warning turned into type mismatch compile error in Neon * https://bugs.eclipse.org/bugs/show_bug.cgi?id=496942 - Eclipse Neon stop compiling Java code and make me to do an unnecessary explicit casting Please paste or attach a self-contained source code example that triggers the problem. Can't share entire project; also, it is far from trivial to extract only related parts of code. Solving as invalid. Just for the record: https://stackoverflow.com/questions/37135622/eclipse-bug-type-mismatch-cannot-convert-from-classmatchedarticle-to-class <quote> I have a class like this: @JsonSerialize(using=MatchedArticle.class) public class MatchedArticle extends JsonSerializer<MatchedArticle>{ It builds fine with maven, but Eclipse reports the following error: Type mismatch: cannot convert from Class<MatchedArticle> to Class<? extends JsonSerializer<?>> which is weird because MatchedArticle really do extend JsonSerializer Any hints on how to turn off this exact validation in Eclipse? </quote> I tried to reproduce the problem reported at StackOverflow, but couldn't. We have nothing in our hands to work on the issue, so closed invalid is the final word, unless we get more information. Update: is seems that everything is just fine with Eclipse 4.6: I started from the scratch, installed bunch of plugins to my new Eclipse installation and voila: same project works like a charm (no errors) :) I guess that Eclipse Groovy plugin introduced some issues, I will try to investigate little bit more and perhaps report bug to their github repo. Created attachment 263342 [details]
Eclipse works as expected :)
(In reply to Dejan Stojadinović from comment #8) > Created attachment 263342 [details] > Eclipse works as expected :) Thanks for confirming. |
Created attachment 263150 [details] Eclipse screenshot Eclipse 4.6 (Neon) and Java 1.8: Maven build passes; yet, Eclipse displays errors "Type mismatch: cannot convert..."