| Summary: | ajbuilder set problem resource and path properties in case of linked file | ||
|---|---|---|---|
| Product: | [Tools] AJDT | Reporter: | Gennady Agranov <agranov> |
| Component: | Core | Assignee: | AJDT-inbox <AJDT-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | andrew.eisenberg |
| Version: | unspecified | ||
| Target Milestone: | 2.2.0 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Gennady Agranov
Can you be more precise: 1. What would you expect the problem to look like? 2. Does this happen for all problems, or only those applied to resources in linked folders? >>> 1. What would you expect the problem to look like? "Resource" should be a file name - e.g. FieldModel.java "Path" should be workspace relative path of the parent folder - e.g. /com.antennasoftware.amp.codegen/src/com/antennasoftware/amp/codegen/toolkit/model BTW - line information set by ajbuilder is correct. Example of problem created by java builder: Description Resource Path Location Type Type safety: The expression of type ModelFieldReference needs unchecked conversion to conform to ModelFieldReference<T> FieldModel.java /com.antennasoftware.amp.codegen/src/com/antennasoftware/amp/codegen/toolkit/model line 81 Java Problem >>> 2. Does this happen for all problems, or only those applied to resources in linked folders? I do not know the answer as in this project we do not have not regular source files but I am confident that there are no issues with regular source files - otherwise it would be reported and fixed long time ago. Consider for the 2.2.0 release. I have finally gotten a chance to look at this. I see that the problem comes around the way AJDT inconsistently handles linked vs regular resources. It looks like this code has been around for a very, very long time. Between that time and now, the APIs for dealing with linked resources have improved. I am tempted to do a major refactoring around this area. My only concern is that this affects other things that may not be sufficiently tested. Fixed. I did some refactoring and removed the old code that converts from a filesystem location to a workspace location. We are now using appropriate Eclipse core APIs instead and things are much safer and shorter. Will be in next snapshot build. http://git.eclipse.org/c/ajdt/org.eclipse.ajdt.git/commit/?id=d083ede368d5b29455dd6a70af2148e88f4ddd68 |