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

Roo project creates uncompilable code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 2.0.0.RC3
    • Fix Version/s: 2.0.0.RELEASE
    • Component/s: SPRING PLATFORM, WEB MVC
    • Labels:
    • Environment:
      macOS 10.12, Java8, 16gb/1tb SSD

      Description

      This Roo script

      project setup --topLevelPackage topdomain --projectName "Tester" --java 8 --multimodule STANDARD
      web mvc setup
      web mvc view setup --type THYMELEAF
      web mvc templates setup --type THYMELEAF 
      

       creates an error "Type mismatch: cannot convert from Class<ConcurrencyException> to Class<? extends Throwable>[]" in the method:

      @ExceptionHandler(ConcurrencyException.class)
          public ModelAndView concurrencyException(final ConcurrencyException ex) {
              return ex.populateAndGetFormView();
          }
      

      of the topdomain.application.web.advices.ConcurrencyExceptionManager class.

      ConcurrencyException being part of io.springlets.web.mvc.util.concurrency.

      As this was my first entry into using Roo 2 it's not obvious how to fix it. At any rate created code should compile and if there insufficient data Roo should refuse to go forward.

       

       

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              digital.discuss MiB
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: