Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 489663

Summary: Compilation error related file order on command line and Generics with source level 1.7
Product: [Eclipse Project] JDT Reporter: Jean-Marie HENAFF <jmhenaff>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug
Attachments:
Description Flags
sample code to reproduce the bug none

Description Jean-Marie HENAFF CLA 2016-03-15 11:06:18 EDT
Created attachment 260313 [details]
sample code to reproduce the bug

I've attached a sample to reproduce.
Simply extract the sample and execute run.sh

It uses ecj-I20160314-2000.jar.

It does not happen if source level is set with -1.8.

source.txt contains the source files in an order that failed for me:

----------
1. WARNING in /ssd/Sample/src/com/test/M.java (at line 4)
	@SuppressWarnings("unchecked")
	                  ^^^^^^^^^^^
Unnecessary @SuppressWarnings("unchecked")
----------
----------
2. ERROR in /ssd/Sample/src/com/test/Test.java (at line 18)
	return new M(A.allOf(getPredicates(finders)));
	               ^^^^^
The method allOf(Iterable<I<? super T>>) in the type A is not applicable for the arguments (List<I<? super U>>)



Putting Test.java first does not produces this error.
Comment 1 Eclipse Genie CLA 2020-02-05 08:21:19 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.