Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 448826 - [1.8][compiler] Avoid error "cannot convert from Collection<Object> to <unknown>"
Summary: [1.8][compiler] Avoid error "cannot convert from Collection<Object> to <unkno...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 4.5 M4   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 400831
  Show dependency tree
 
Reported: 2014-10-25 08:51 EDT by Stephan Herrmann CLA
Modified: 2014-12-09 04:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2014-10-25 08:51:56 EDT
See GenericsRegressionTest_1_8.testBug424712a():

	// The extra error with <unknown> reads a bit weird.
	"----------\n" + 
...
	"3. ERROR in X.java (at line 12)\n" + 
	"	Set<Y> rosterSet = (Set<Y>) foo(null, Set::new);\n" + 
	"	                            ^^^^^^^^^^^^^^^^^^^\n" + 
	"Type mismatch: cannot convert from Collection<Object> to <unknown>\n" + 
	"----------\n" +
Comment 1 Srikanth Sankaran CLA 2014-11-02 22:28:03 EST
Delinking from https://bugs.eclipse.org/bugs/show_bug.cgi?id=448791 and
instead linking to https://bugs.eclipse.org/bugs/show_bug.cgi?id=400831
Comment 2 Srikanth Sankaran CLA 2014-11-05 13:05:28 EST
Cumulative fix and tests for bug 448954 and 448826 released here:
http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=1ddc6abfe5d6cd8ad8c71d5100cfa53f4e84487a
Comment 3 Sasikanth Bharadwaj CLA 2014-12-09 04:31:01 EST
Verified for 4.5 M4 using build I20141208-2000