Details
Description
The Backport175 compiler needs either the fully-qualified Name of the Annotation-Interface or the short-name as defined in annotation.properties. Could it be possible to take a look at the imports in a source-file to try to find the Class? This would mimic the behaviour of JDK1.5 Annotations. The same goes for class-values, obviously.
An Example:
package p1;
import p2.MyAnnotation
import p3.SomeClass
/**
- @MyAnnotation(clazz=SomeClass.class)
*/
public class MyTarget {
...
}
This feature would greatly ease our work, as we convert JDK1.5 annotations to Backport Annotations at build-time (so that we can develop with JDK1.5 without the hassle of a post-compile-step during development). I might be able to look into this myself, but even 'though I've had some closer looks at the Eclipse Plugin I have almost no knowledge about the internals of the core library itself, so this might take some time.
I'd welcome any comments on wether you think this could be usefull to others as well.
we provide the annotation.properties mapping file for that purpose (only optionally needed at compile time)