You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@causeway.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2023/08/29 05:00:00 UTC
[jira] [Updated] (CAUSEWAY-3556) [Metamodel] Support for action methods that override generic type bounded ones
[ https://issues.apache.org/jira/browse/CAUSEWAY-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber updated CAUSEWAY-3556:
---------------------------------
Summary: [Metamodel] Support for action methods that override generic type bounded ones (was: [Metamodel] method override not properly detected when type erasure is involved)
> [Metamodel] Support for action methods that override generic type bounded ones
> ------------------------------------------------------------------------------
>
> 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 _Action_ is not properly picked up because in this specific type hierarchy sampleAction appears twice with differing method signatures (most likely because a bridge method is used by the JVM here).
> {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)