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
- duplicates
-
ROO-1755 @Id annotation not recognized if javax.persistence.* imported
-
- Closed
-
- is duplicated by
-
ROO-3149 Using .* imports can cause Roo to generate invalid ITDs
-
- Resolved
-
-
ROO-3222 Java class Import
-
- Resolved
-
-
ROO-3341 Bad entity changes after field is added
-
- Resolved
-
-
ROO-2787 Incorrect java package generated
-
- Resolved
-
-
ROO-3456 Not declaring entity directly in controller causes roo to delete aj file
-
- Resolved
-
-
ROO-2122 Incorrect import in JavaBean aspect for java.util.Set
-
- Closed
-
-
ROO-3261 Java imports not properly generated
-
- Open
-
- is related to
-
ROO-3192 Roo re-writing imports on addition of new finder
-
- Resolved
-
-
ROO-3349 field reference command doesn't accept --permitReservedWords argument on last position on line after --cardninality definition
-
- Resolved
-
- relates to
-
ROO-2377 GAE - Latest ROO dev deletes required transient fields on some Roo_JavaBean.aj
-
- Resolved
-
-
ROO-2547 Fully qualified type names for Id and Version annotations required for pushed in id and version fields
-
- Resolved
-