| Summary: | Compiler does not honor build path order with library before source folder | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Matt McCutchen <hashproduct+eclipse> | ||||
| Component: | Core | Assignee: | Jay Arthanareeswaran <jarthana> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | amj87.iitr, satyam.kandula | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Matt McCutchen
Created attachment 194424 [details]
Test case
This should be imported with "Import" -> "Existing Projects into Workspace".
I don't know why would look for a type in another library entry when it's available in the current source entry that we are trying to compile. If we are talking about two different library folders, then definitely classpath order would be the deciding factor. But not in this case. I am afraid we can't do much here. Satyam, can you please check and let me know what you think? JDT/Core is intentionally looking at the output folders before looking at the jars. This is good so that even if people don't really modify the class path ordering, the code in the source code will be resolved before the libraries. However, I agree that this is not correct. At the same time, I am afraid that this change could likely cause problems in some unknown scenarios. Matt, Do you really need this behavior? 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. If you have further information on the current state of the bug, please add it. 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. |