eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Create method does not offer drop down for method modifiers

Open
#433 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
59
Forks
127
Avg merge
23h 30m
Merged PRs (30d)
35

Description

Eclipse version: 2022-12 (4.26.0)

The create method quick fix no longer offers a dropdown list of modifiers for the extracted method, so you have to type the full modifier (public/protected/private) instead of picking from a list.

Steps to reproduce:

1. Open a java file
2. Add code to call a method that does not yet exist
3. Select quick fix to create new method (ctrl+1)
4. Press tab to move to the method modifier

Expected: available modifiers are presented as a drop-down list

Actual: no modifiers are presented, so the modifier must be typed out in full

This is a regression from previously working and useful behaviour.

Contributor guide

Open the contributing guide

Research direction

Start in the Java quick-fix flow for creating a missing method, reproducing the issue with Ctrl+1 and Tab on Eclipse 2022-12. Compare the modifier field's current behavior with the previously working dropdown behavior described in the report. Done means the create-method quick fix presents public, protected, and private as selectable modifiers.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.