New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java] RedundantFieldInitializer - NumberFormatException with Long #1298

adangel opened this Issue Aug 13, 2018 · 1 comment


None yet
2 participants

adangel commented Aug 13, 2018

Affects PMD Version: 6.7.0-SNAPSHOT (and earlier)

Rule: java-performance/RedundantFieldInitializer

Description: The rule fails to parse 0xffffffffffffffffL with a NumberFormatException.

Code Sample demonstrating the issue:

public class RedundantFieldInitializerTest {
    private long hexLongMinusOne = 0xffffffffffffffffL;

Running PMD through: any

Thanks to @djydewang for finding this bug!


This comment has been minimized.


jsotuyod commented Aug 13, 2018

The regression tester has already paid itself off so many times in just a couple of weeks... I'm so glad @djydewang stood up to the challenge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment