You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Strange behavior in the editor when a variable is named "va" #9579
If you name a variable "va" and format the code a second space appears right of the declaration of "va". If you refactor "va" and delete the additional space, occurrences of "va" at other places in the scope of the code will delete the char right of "va".
Language / Project Type / NetBeans Component
Java Maven Project
How to reproduce
Use this code:
int va = 2;
if (2 == va) {
boolean result = true;
}
Format the Code, look at the declaration of "va", a second space will appear.
Rename "va" with STRG+r, delete the second space, the closing bracket of the if-statement will be deleted.
Activity
matthiasblaesing commentedon Aug 30, 2026
Verfied
matthiasblaesing commentedon Aug 30, 2026
@caschoff please have a look at #9586. That should fix the issue. A nightly build is available from the checks page or directly: https://github.com/apache/netbeans/suites/90301179877/artifacts/9735857919.
java.lexer: The va "int va =" is incorrectly lexed to "va " (includes…