Skip to content

Rename method leads to naming conflict. #7302

@DongChunHao

Description

@DongChunHao

Apache NetBeans version

Apache NetBeans 21

What happened

When I select "k()" and perform the rename method refactoring, new name "m()" and i click "OK", a behavior change:
class B{
// rename k to m
void k(){}
}
class A extends B{
static public void m(){}
}

Language / Project Type / NetBeans Component

No response

How to reproduce

When I select "k()" and perform the rename method refactoring, new name "m()" and i click "OK", a behavior change:
class B{
// rename k to m
void k(){}
}
class A extends B{
static public void m(){}
}

Expected result: Naming conflict check, providing error prompts

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows11

JDK

20

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions