You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "homberghp (via GitHub)" <gi...@apache.org> on 2025/06/16 18:03:55 UTC

Re: [I] [Pull Down Method Refactoring Bug] Pull down method refactoring leads to changes in code calling relationships [netbeans]

homberghp commented on issue #7800:
URL: https://github.com/apache/netbeans/issues/7800#issuecomment-2977544277

   What NetBeans refactoring does is pull the element(s) up to the nearest super, which can be a class, an abstract class, or 
   interface. In the later, and optionally in the penultimate (the abstract class) the member (method) can be made abstract.
   
   In your case the Hierarchy is 
   ```mermaid
   classDiagram
      SuperClass <|-- SubClass
      SubClass <|-- A
      SubClass: + test()
   ```
   
   Pulling up member `test` from Subclass will and should result in 
   ```mermaid
   classDiagram
      SuperClass <|-- SubClass
      SubClass <|-- A
      SuperClass: + test()
   ```
   
   This implies that as far as I am concerned, there is nothing wrong.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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