Details
Description
This patch adds more knowledge to the AbstractJavaEntity (field/method/class/ctor) where it occurs instead of the JavaSource object.
This opens up for more fine grained knowledge about where a tag occurs.
The reason why I want to add this is in order for XDoclet2 to be able to provide more detailed error reporting during tag validation. With this in place, XDoclet2 will be able to say:
"The @foo tag is not allowed on methods, you put it on a method on line 123 in file /some/path/SomeFile.java".
I haven't verified whether this has any impact on performance, but I don't see why it should.
I also think it will cause neglectable BWC issues (even though some of the API has changed), because the API that has changed is fairly internal. The modified parts of the API is also fairly recent (post 1.3).
Since this is a fairly big change (although low risk IMHO), I'm submitting it here for people to review it before I commit.
Activity
Field | Original Value | New Value |
---|---|---|
Attachment | patch.diff [ 11227 ] |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 1.4 [ 10304 ] | |
Resolution | Fixed [ 1 ] |
El patch