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

Java imports doesn't read properly

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.1.0.M1
    • 1.1.0.M2
    • @ CORE
    • None
    •  [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

              balex Ben Alex
              dzmitry Dzmitry Barouka
              Archiver:
              tmarshall Trevor Marshall

              Dates

                Created:
                Updated:
                Resolved:
                Archived: