Hi all,

seems like XDtConstructor:ifHasConstructorTag" fails when no modifier is provided in the constructor definition. ("MyClass() { }")

Is this a bug or am I doing something wrong? (See template file and test file below)

Regards,
Simon

--------- XDT template --------------------

<XDtPackage:forAllPackages>
<XDtClass:forAllClasses>
<XDtConstructor:forAllConstructors superclasses="false">
<XDtConstructor:ifHasConstructorTag tagName="trace.this">
<XDtClass:fullClassName/>.new
</XDtConstructor:ifHasConstructorTag>
</XDtConstructor:forAllConstructors>

--------- Java Test File ------------------

public class Test {
    /**
     * @trace.this
     */
    Test() { /* DOESN'T WORK */}

    /**
     * @trace.this
     */
    private Test() { }

    /**
     * @trace.this
     */
    protected Test(int i) { }

    /**
     * @trace.this
     */
    public Test(int i, int j, int k) { }
}


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to