IllegalArgumentException with Refactor Move Members
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
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
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 939
- 平均合并
- 4 天 21 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/netbeans 的其他 Issue
-
Contribution welcome kind:feature Platform
难度 2/5 1-3 小时 新手友好度 72/100
apache/netbeans#9614 · 2 条评论 ·
维护者通常 1 天内回复
-
kind:bug LSP needs:triage
难度 2/5 1-3 小时 新手友好度 78/100
apache/netbeans#9548 · 1 条评论 ·
维护者通常 1 天内回复
-
Editor Java kind:feature needs:triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
kind:bug needs:triage os:linux os:macos Platform UI
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
kind:bug needs:triage
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
Fix Math.ceilDiv wrong result for exact positive divisions可能已有人在做 @pamod-madubashana 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
scala-native/scala-native#5094 ·
维护者通常 1 天内回复
-
[Bug] AI unread message badge counts a batch of new bubbles as one message可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
apache/rocketmq-dashboard#5784 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
PCL-Community/PCL-CE#3658 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
apache/skywalking#14127 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复