Bugs item #2880402, was opened at 2009-10-16 12:41
Message generated for change (Comment added) made by rpelisse
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=479921&aid=2880402&group_id=56262Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: cpd
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Devos Nicolas (devosnicolas)
Assigned to: Romain PELISSE (rpelisse)
Summary: CPD ignore literals Vs number of token
Initial Comment:
when ignoring literals, cpd divides the duplicated bloc at each ignored literals.
Then the number of token combinated with ignoring literals can lead to unidentified duplicated code
In the attached file, duplications of 15 and 10 tokens are found ignoring the litterals (ie size=8 vs 9). Then if you use a number of token of 20, cpd finds nothing !
For my point of view, the duplicated bloc is 25 tokens long.
----------------------------------------------------------------------
>Comment By: Romain PELISSE (rpelisse)
Date: 2009-10-16 16:56
Message:
Yes, but I was more refering to a Junit test integrated to PMD. Your class
is basicly the "food" for such a test.
----------------------------------------------------------------------
Comment By: Devos Nicolas (devosnicolas)
Date: 2009-10-16 16:41
Message:
Small test case is attached...
----------------------------------------------------------------------
Comment By: Romain PELISSE (rpelisse)
Date: 2009-10-16 16:28
Message:
Hi,
Thanks for the report. I'll try to look into this issue. Note that a small
test case to reproduce your issue would be very much appreciated :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=479921&aid=2880402&group_id=56262------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Pmd-devel mailing list
Pmd-devel@...
https://lists.sourceforge.net/lists/listinfo/pmd-devel