Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3556

[Metamodel] Support for action methods that override generic type bounded ones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 2.0.0-RC3
    • Core
    • None

    Description

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

      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;
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              hobrom Andi Huber
              hobrom Andi Huber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: