apache / apache/netbeans

Bug:Rename the method's new name to 'equals'

Open
#7,844 0 comments 0 reactions 0 assignees View on GitHub
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

When the "methodToBeRenamed" method is selected for the rename method refactoring, it causes a refactoring bug because the new method name being renamed conflicts with the method of existing APIs , resulting in a syntax error.

interface I{
void methodToBeRenamed(Object o) throws Exception;
}

### Language / Project Type / NetBeans Component

_No response_

### How to reproduce

When the "methodToBeRenamed" method is selected for the rename method refactoring, it causes a refactoring bug because the new method name being renamed conflicts with the method of existing APIs , resulting in a syntax error.

interface I{
void methodToBeRenamed(Object o) throws Exception;
}

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

Apache NetBeans 23

### Operating System

Windows11

### JDK

20

### 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

Reproduce the rename-method refactoring in Apache NetBeans 23 using the provided interface and the target name "equals". Start at the Java rename-method refactoring entry point and trace the generated result; done means the rename completes without producing a syntax error.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.