Skip to content
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] AvoidUsingOctalValues FN with underscores #3400

Closed
oowekyala opened this issue Jul 11, 2021 · 1 comment · Fixed by #3398
Closed

[java] AvoidUsingOctalValues FN with underscores #3400

oowekyala opened this issue Jul 11, 2021 · 1 comment · Fixed by #3398
Labels
a:false-negative PMD doesn't flag a problematic piece of code
Projects
Milestone

Comments

@oowekyala
Copy link
Member

oowekyala commented Jul 11, 2021

Affects PMD Version: 6.36.0

Rule: AvoidUsingOctalValues

Description: The rule should report octal literals that contain underscores

Code Sample demonstrating the issue:

class Test {
  int i = 0_711;
}

Expected outcome: a violation

PMD should report a violation at line ..., but doesn't. This is a false-negative.

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]

@oowekyala oowekyala added the a:false-negative PMD doesn't flag a problematic piece of code label Jul 11, 2021
@oowekyala oowekyala added this to Done in PMD 7 Jul 11, 2021
@oowekyala oowekyala linked a pull request Jul 11, 2021 that will close this issue
@adangel adangel added this to the 7.0.0 milestone Jan 9, 2023
@adangel adangel mentioned this issue Jan 23, 2023
55 tasks
@jsotuyod
Copy link
Member

This is fixed in PMD 7.0.0-rc1. It won't be backported to PMD 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:false-negative PMD doesn't flag a problematic piece of code
Projects
No open projects
PMD 7
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants