[
https://issues.apache.org/jira/browse/CAUSEWAY-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17758978#comment-17758978
]
Andi Huber commented on CAUSEWAY-3556:
--------------------------------------
Metamodel introspection fails to identify those 2 sampleAction methods given in
the description as NOT the same, because their signatures differ at runtime.
> [Metamodel] method override not properly detected when type erasure is
> involved
> -------------------------------------------------------------------------------
>
> Key: CAUSEWAY-3556
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3556
> Project: Causeway
> Issue Type: Bug
> Components: Core
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0-RC3
>
>
> Following type hierarchy is not properly picked up because of the differing
> method signatures (due to runtime type erasure).
> {code:java}
> public abstract class Example<T> {
> @Action
> public T sampleAction(@Parameter @Nullable final T value) {
> return value;
> }
> }
> public class StringExample extends Example<String> {
> @Action @Override
> public String sampleAction(@Parameter @Nullable final String value) {
> return value;
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)