Skip to content

Renaming Gradle app creates errors. #3595

@wiegleyj

Description

@wiegleyj

Apache NetBeans version

Latest release

What happened

When you create a new Gradle app you get your initial source code class called "app.java". When you try to rename it you get incorrect results.

Renaming app.java to MyDriver.java for instance produces:
public classMyDriverp
So it matched and replaced " Ap" with the rename instead of "App".

Please focus on actually getting gradle truly supported. Why is gradle all of the sudden creating multi-project oriented projects? Why don't you get to choose the name of the initial project? Why is there no way to add/delete/modify sub-projects? Why is there no "Run" configuration ability in the project properties? I would not consider gradle to be "supported", it's been difficult to use and buggy and 12.6 didn't improve it as much as it made it even more confusing to use.

How to reproduce

Make a new gradle project. Rename the App class file.

Did this work correctly in an earlier version?

  • This used to work!

Operating System

Windows 11

JDK

java 17.0.2 2022-01-18 LTS

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Happens every time.

Are you willing to submit a pull request?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixpending-responseAwaiting further information to be supplied

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions