Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4650

stub generation fails with generic signatures

    XMLWordPrintableJSON

Details

    Description

      The stub generation fails with the following classes. It appears it may be because of the generic signatures.

      //groovy code
      public interface ColContract {
        List<? extends PrimitiveContract> getPrims();
        String getThing();
        List<String> getMoreThings();
      }
      
      public interface PrimitiveContract {
        String getFoo();
        String getBar();
      }
      
      import java.util.List;
      
      public class Client3 {
          { new ColContract() {
              @Override
              public List<? extends PrimitiveContract> getPrims() {
                  return null;
              }
      
              @Override
              public String getThing() {
                  return null;
              }
      
              @Override
              public List<String> getMoreThings() {
                  return null;
              }
          }; }
      }
      

      Attachments

        Activity

          People

            paulk Paul King
            leo.herbie Travis Schneeberger
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: