[
https://issues.apache.org/jira/browse/LANG-1649?focusedWorklogId=567673&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-567673
]
ASF GitHub Bot logged work on LANG-1649:
----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Mar/21 14:00
Start Date: 17/Mar/21 14:00
Worklog Time Spent: 10m
Work Description: arturobernalg commented on pull request #731:
URL: https://github.com/apache/commons-lang/pull/731#issuecomment-801104206
> 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.
Hi @aherbert
I completely forgot about the final. I will check the static case.
----------------------------------------------------------------
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: 567673)
Time Spent: 1h (was: 50m)
> 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: 1h
> 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)