| Summary: | Problem with inner classes referenced from jars or class folders: "The type ... cannot be resolved" | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Thomas Philipp <philipp> | ||||||
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | amj87.iitr, brianchin, Michael_Rennie, Olivier_Thomann, srikanth_sankaran | ||||||
| Version: | 3.8 | Flags: | srikanth_sankaran:
review+
|
||||||
| Target Milestone: | 3.7.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Thomas Philipp
I'll take a look. This was broken also in 3.6. (In reply to comment #0) > I found no workaround for this but to refactor some classes not to be inner > classes any more, but this is not really a good workaround. This is not a workaround. The problem here is that A is still seen as a source type where B is seen as a binary type. So A$I is searched into a source fragment root as source and not as a binary type. I'll provide a patch soon that will need to be intensively tested. Created attachment 203069 [details]
Patch v1
Under test.
Created attachment 203078 [details]
Patch v2
The previous patch would return duplicated types.
Srikanth, please review. This is a case that I believe never worked. Retrieve from a source package fragment a type that is defined inside a binary type (p/A$I in this case). Released for 3.8M3. Verified for 3.8 M3 using build id: N20111022-2000 Patch looks good. (could be simplified a bit, but I'll leave it as it is) If at all possible, could this patch be moved up to the 3.7 Maintenance Branch? We're currently running into this problem with some of our users, and it would be great to see a fix before the 3.8 release. (In reply to comment #9) > If at all possible, could this patch be moved up to the 3.7 Maintenance Branch? > We're currently running into this problem with some of our users, and it would > be great to see a fix before the 3.8 release. Ayush, Along with the other fixes you are backporting, could you please include this one also please. TIA. Released in 3-7 maintenance branch via commit 9ae69253a6820a853326ea257bd70fb5b0aab8f4 Verified for 3.7.2RC2 using build M20120118-0800 |