[ 
https://issues.apache.org/jira/browse/LANG-1649?focusedWorklogId=567634&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-567634
 ]

ASF GitHub Bot logged work on LANG-1649:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Mar/21 13:04
            Start Date: 17/Mar/21 13:04
    Worklog Time Spent: 10m 
      Work Description: aherbert commented on pull request #731:
URL: https://github.com/apache/commons-lang/pull/731#issuecomment-801064190


   There are more rules to check here. You should also check the method is not 
**final** using `Modifier.isFinal` which prevents being overridden.
   
   How to handle static methods is an issue. You cannot create an **instance** 
method in a subclass with the same signature as a **static** method from the 
super class. But you can create a **static** method with the same signature. 
The static methods are not dispatched on an object at runtime. The method to 
use is chosen by the compiler.
   
   So perhaps this should return false for any method with the static or final 
modifiers.
   


----------------------------------------------------------------
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.

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 567634)
    Time Spent: 50m  (was: 40m)

> Check if method is Overridable
> ------------------------------
>
>                 Key: LANG-1649
>                 URL: https://issues.apache.org/jira/browse/LANG-1649
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.12.0
>            Reporter: Arturo Bernal
>            Priority: Minor
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Create a method that Check if the given  Method is overridable in the given a 
>  Class
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to