Menu

#1542 [java] CPD throws an NPE when parsing enums with -ignore-identifiers

PMD-5.5.3
closed
None
PMD
3-Major
Bug
5.5.2
2016-11-14
2016-11-10
Juan Sotuyo
No

Since the changes introduced in 5.5.2 to preserve constructor names in CPD when running with -ignore-identifiers, parsing a top level enum throws a NullPointerException.

Sample code:

public enum Foo {
  BAR,
  BAZ;
}

Discussion

  • Juan Sotuyo

    Juan Sotuyo - 2016-11-10
     
  • Andreas Dangel

    Andreas Dangel - 2016-11-14
    • status: open --> closed
     
  • Andreas Dangel

    Andreas Dangel - 2016-11-14

    This bug will be fixed with PMD 5.5.3 and later.

     

Log in to post a comment.

MongoDB Logo MongoDB