You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unpack the zip file, open resulting project with netbeans, and try to refactor the teacher or student class by pull up to super (institute).
Resulting code is wrong because no longer A RECORD and incomplete (constructor does not initialize final fields).
Did this work correctly in an earlier version?
No / Don't know
Operating System
ubuntu 24.04
JDK
17
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
I am working on #7044, in PR but my solution is not yet complete, because it is quite hard to find the relevant places where the distinction should be made between normal classes and records.
I'm currently working on #7044 and create a PR, nut that should be held up until it is complete.
Are you willing to submit a pull request?
Yes
The text was updated successfully, but these errors were encountered:
Apache NetBeans version
Apache NetBeans 24
What happened
When you try to pull up a record (static) member of the record type, refactoring drops the record information.
Context; School extends Institute.
Pull up member Student to institute
The code in class School
After pull up Student to Institute:
Language / Project Type / NetBeans Component
j17 netbeans 25 and earlier
How to reproduce
recordast.zip
Unpack the zip file, open resulting project with netbeans, and try to refactor the teacher or student class by pull up to super (institute).
Resulting code is wrong because no longer A RECORD and incomplete (constructor does not initialize final fields).
Did this work correctly in an earlier version?
No / Don't know
Operating System
ubuntu 24.04
JDK
17
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
I am working on #7044, in PR but my solution is not yet complete, because it is quite hard to find the relevant places where the distinction should be made between normal classes and records.
I'm currently working on #7044 and create a PR, nut that should be held up until it is complete.
Are you willing to submit a pull request?
Yes
The text was updated successfully, but these errors were encountered: