Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3651

Roo doesn't allow to generate methods with empty body

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M1
    • Fix Version/s: 2.0.0.M2
    • Component/s: None
    • Labels:
      None

      Description

      If you try to generate a method using MethodMetadataBuilder and you want that your method has empty body, ROO shell shows the following error:

      Method 'org.springframework.roo.classpath.details.MethodMetadataBuilder@714d0d01[methodName=myMethod,parameterTypes=[java.lang.String]]' failed to provide a body, despite being identified for ITD inclusion
      

      This check is only necessary if return type is distinct to void, because method needs to return something, so body should not be blank...

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              jcgarcia Juan Carlos García del Canto
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: