Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Incomplete
-
Affects Version/s: 1.4
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:SO: Linux Debian SID (unstable)
IDE: Eclipse 3.0M8
JDK: j2sdk 1.4.2_04
-
Number of attachments :
Description
I observed this issue when trying to iterate over class' fields.
Only the first of them has a javadoc tag.
But it seems that the subsequent fields see the same javadoc tag as their own.
Example class:
public class A {
/**
- @tag no-access="true"
*/
private int field1;
private int field2;
private int field3;
}
Velocity template:
#foreach($field in $class.fields)
#set($tag = $field.getTagByName("tag"))
#if($tag.getNamedParameter("no-access"))
<!-- Skipped by tag 'no-access' presence in field $field.name -->
#else
<!-- access the field
do something... -->
#end
#end
Result:
<!-- Skipped by tag 'no-access' presence in field field1 -->
<!-- Skipped by tag 'no-access' presence in field field2 -->
<!-- Skipped by tag 'no-access' presence in field field3 -->
Activity
Miguel Griffa
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | jira-qdox48-patch.txt [ 12053 ] |
Mike Williams
made changes -
Resolution | Incomplete [ 4 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
A failing test case