apache / apache/netbeans

auto-complete does not work in loop declaration

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

Description

### Apache NetBeans version

Apache NetBeans 23

### What happened

In an enhanced for-loop
`for ( Object ob : collection )
{
}`
typing 'fi + TAB' in front of the Object expands the TAB instead of completing to 'final'.

### Language / Project Type / NetBeans Component

Java Editor

### How to reproduce

decsribed above

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

No / Don't know

### Operating System

Windows 10 Pro 22H2

### JDK

21

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

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

No

Contributor guide

Open the contributing guide

Research direction

Start with the Java Editor and reproduce the enhanced for-loop case described in the issue. Verify that typing “fi + TAB” before Object completes to “final” rather than expanding the TAB; done means completion works correctly in that loop declaration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.