Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

IllegalArgumentException with Refactor Move Members

Aperta
#9,630 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
devtools

Direzione di ricerca

Start with messages.log and the Refactor Move Members operation in a Java Maven project; reproduce the multi-method move into a newly created target class with a matching static field. Trace the exception to the failing refactoring path, then add or update coverage for the reproduced case and verify that the refactor completes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Java kind:bug needs:triage
Apache NetBeans version

Apache NetBeans 31

What happened

In a Java file, I selected a method. Then I selected Refactor from the menu. The aim was to move a method into a class that I had created as a target. I created in that target class the same static field that the method depended on. I selected package and class of the target. I realized that the dialog allowed me to select multiple methods so I selected more. When I finally clicked the "Refactor" button, the exception was thrown and the operation could not complete.

Language / Project Type / NetBeans Component

Java Maven Project

How to reproduce

messages.log

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10

JDK

JDK 26

Apache NetBeans packaging

Community provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Lingua principale
Java
Stelle
3.1k
Fork
939
Merge medio
4g 14h
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/netbeans

Tutte le issue di apache/netbeans

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.