At Codacy we ran into this issue analysing some Javascript files. It seems to loop infinitely consuming the entire heap and failing with OutOfMemoryError
You can find a reproducing repository here
Affects PMD Version:
Description:
PMD fails with OutOfMemoryError parsing a Javascript file
Code Sample demonstrating the issue:
note: Removing the newline changes behavior:
is parsed correctly.
Running PMD through: CLI
Codacy Issue:
https://github.com/codacy/codacy-meta/issues/207
cc: @andreaTP
At Codacy we ran into this issue analysing some Javascript files. It seems to loop infinitely consuming the entire heap and failing with
OutOfMemoryErrorYou can find a reproducing repository here
Affects PMD Version:
Description:
PMD fails with
OutOfMemoryErrorparsing a Javascript fileCode Sample demonstrating the issue:
note: Removing the newline changes behavior:
is parsed correctly.
Running PMD through: CLI
Codacy Issue:
https://github.com/codacy/codacy-meta/issues/207
cc: @andreaTP