Menu

#1333 Error while processing Java file with Lambda expressions

PMD-5.3.1
closed
None
PMD
2-Critical
Bug
5.3.0
2015-04-13
2015-04-07
No

while running PMD through Gradle, the following error occurs

:bar:pmdMain
Foo.java - Error while processing Foo.java

works fine in 5.2.2 and 5.2.3, so must have been introduced in 5.3.0

1 Attachments

Discussion

  • Andreas Dangel

    Andreas Dangel - 2015-04-13
    • summary: Error while processing file --> Error while processing Java file with Lambda expressions
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.3.1
    • Priority: 3-Major --> 2-Critical
     
  • Andreas Dangel

    Andreas Dangel - 2015-04-13

    Thanks for the bug report. It will be fixed with 5.3.1 and 5.4.0.

    Meanwhile, you can apply the following workaround:

    delete((String path) -> deleteDirectory(path));
    

    This will add the type "String" to the local variable path, so that PMD doesn't run into the NullPointerException.

     
  • Andreas Dangel

    Andreas Dangel - 2015-04-13
    • status: open --> closed
     

Log in to post a comment.