Menu

#1517 [java] CPD reports on Java constructors when using ignoreIdentifiers

PMD-5.5.2
closed
CPD
3-Major
Bug
5.5.1
2016-09-02
2016-08-24
Juan Sotuyo
No

If you have enough different constructors to surpass the given token count for a match, all subclasses will report on CPD. Even classes not on the same class hierarchy may match if argument types are the same.

Constructor tokens should not be mangled when using ignoreLiterals.

Discussion

  • Juan Sotuyo

    Juan Sotuyo - 2016-08-24

    Typo, where I say ignoreLiterals, it should say ignoreIdentifiers

     
  • Andreas Dangel

    Andreas Dangel - 2016-09-02
    • summary: CPD reports on Java constructors when using ignoreLiterals --> [java] CPD reports on Java constructors when using ignoreIdentifiers
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.5.2
     
  • Andreas Dangel

    Andreas Dangel - 2016-09-02
    • labels: --> java, cpd
     
  • Andreas Dangel

    Andreas Dangel - 2016-09-02
    • status: open --> closed
     
  • Andreas Dangel

    Andreas Dangel - 2016-09-02

    This bug will be fixed with PMD 5.5.2 and later.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.