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

wrong use of generics in stub compiler

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.6-beta-1, 1.5.7
    • Component/s: None
    • Labels:
      None

      Description

      with the code

      public java.util.List findAllProcessesForActivityType(java.lang.Long activityTypeId) {

      }

      the Stubgenerator generates this:

      public java.util.List<E extends java.lang.Object> findAllProcessesForActivityType(java.lang.Long activityTypeId) {
      return (java.util.List<E extends java.lang.Object>)null;
      }

      this may be the result of a bug fix in 1.5.6. This won't compile, because the syntax is wrong.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              blackdrag Jochen Theodorou
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: