mbien commented on PR #7670:
URL: https://github.com/apache/netbeans/pull/7670#issuecomment-2294664524

   >   - instant-renaming the record itself will not rename the compact 
constructor
   > 
   > The second point is caused due to 
InstntRenamePerformer#computeChangePoints looping through 
ElementFilter.constructorsIn(el.getEnclosedElements())), however, this list 
does not include the compact constructor. In fact, it isn't even in 
getEnclosedElements()- so I don't know how to get it unfortunately.
   
   ah I get it. The compact constructor is represented by the canonical 
constructor. `Utilities#getToken` can't convert it to a token though and 
returns null.
   
https://github.com/apache/netbeans/blob/36171a7e45f592c11be357fbef9a1dcf8d0e08ec/java/java.editor/src/org/netbeans/modules/java/editor/rename/InstantRenamePerformer.java#L377-L385


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to