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

Roo project creates uncompilable code

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Complete
    • 2.0.0.RC3
    • 2.0.0.RELEASE
    • SPRING PLATFORM, WEB MVC
    • 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

            jcgarcia Juan Carlos García del Canto
            digital.discuss MiB
            Archiver:
            tmarshall Trevor Marshall

            Dates

              Created:
              Updated:
              Resolved:
              Archived: