apache / apache/netbeans

Incorrect code analysis (unbalanced-hint)

Open
#4,545 5 comments 0 reactions 0 assignees View on GitHub
hints Java kind:bug
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 15 release candidate

### What happened

Java variable is being used but NB says it isn't. See two images
![pic1](https://user-images.githubusercontent.com/6467584/187008790-6575256f-c60b-4ac6-a55e-8be4a6608607.png)
![pic2](https://user-images.githubusercontent.com/6467584/187008791-8649967a-c8ee-482e-8326-fe8d33ffa50a.png)
.

### How to reproduce

_No response_

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Fedora Linux

### JDK

8

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the incorrect unused-variable analysis in Apache NetBeans 15 release candidate on Fedora Linux with JDK 8, using the two attached screenshots as the expected context. Trace the code-analysis path responsible for the unbalanced-hint warning; done means the used Java variable is no longer reported as unused.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.