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

Java keywords are generated for entity type variable names.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      When an entity has the same name as a java keyword the variable names used/created by the controller script cause the generated files to be invalid/erroneous.

      ie.
      entity --class ~.products.Package

      will create method signatures on controller aspects which call something like:
      doSomethingWith(Package package)

      this will not compile correctly due to the package keyword being used as a variable.

      I assume that this problem will occur for most java keywords as well as those used by aspectj.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              bjc Benjamin Conlan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: