-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor>Rename
messes up javadoc comment formatting.
#8233
Comments
Just looked at some notes. This problem seems to occur in several situations. I'm wondering if there's an option I don't know about.
|
This is a REGRESSION. It worked in NetBeans 23. (updated OP) |
seems to be a side effect of #7491, reverted a few PRs and this was the only revert which changed the behavior back to NB 23. added a slightly modified reproducer to mbien/nb-reprorepo@995e19d |
@lahodaj this might also affect the VSCode plugin, comment above has a reproducer with instructions. |
Will take a look. |
This is also reminding me of the behaviour before the fix in #6282 (Creating a comment out of extracted first sentence and body not working correctly.) |
@neilcsmith-net , yes, I think this is about full/split body! Let see how this will work: |
Apache NetBeans version
Apache NetBeans IDE 25-rc2
What happened
Product Version: Apache NetBeans IDE 25-rc2
Doing
refactor>rename
messes up javadoc comments that reference the renamed item.Have observed
Language / Project Type / NetBeans Component
java
How to reproduce
NewProject Maven
m2
in line 20, use context menuRefactor>Rename
m2
tosomeDifferentName
Observe lines 4, 9 (see below): the javadoc comments are incorrectly formatted.
Also fails in NB 24. Works in NB 23.
test-file
after refactor rename
Did this work correctly in an earlier version?
NetBeans 23
Operating System
Linux harmony 6.9.3-76060903-generic #202405300957
173877096822.04~d5f7c84 SMP PREEMPT_DYNAMIC Wed F x86_64 x86_64 x86_64 GNU/LinuxJDK
Java: 23.0.1; OpenJDK 64-Bit Server VM 23.0.1+11-39 Runtime: OpenJDK Runtime Environment 23.0.1+11-39 System: Linux version 6.9.3-76060903-generic running on amd64; UTF-8; en_US (nb)
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
every time
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: