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

Java imports doesn't read properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M2
    • Component/s: @ CORE
    • Labels:
      None
    • Environment:
       [rev ac300fd]

      Description

      Roo can't read java imports properly if there is import of package.

      Test Case:

      1. run commands

      project --topLevelPackage a.b --projectName CCC
      persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity --class ~.EEE --testAutomatically true
      field string --fieldName afield --notNull true
      field string --fieldName bfield --notNull true
      entity --class ~.EEE2 --testAutomatically true
      field set --fieldName ahz --element ~.EEE
      controller all --package ~.web 

      2. Start tomcat and go to http://localhost:8080/CCC/eee2s?form
      You can see multiselect component at page

      3. Edit EEE2.java: replace

      import javax.persistence.Entity;

      to

      import javax.persistence.*;

      4. Start roo:

      roo-dev q

      Console output:

      [FelixDispatchQueue] Managed SRC_MAIN_WEBAPP\WEB-INF\views\eee2s\create.jspx
      [FelixDispatchQueue] Managed SRC_MAIN_WEBAPP\WEB-INF\views\eee2s\update.jspx

      5. Start tomcat and go to http://localhost:8080/CCC/eee2s?form
      You can see usual input field instead of multiselect.

      Related to ROO-807.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              dzmitry Dzmitry Barouka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: