Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Complete
-
None
-
None
Description
If a entity (or any .java) is modified by Spring Roo some erroneous changes is made:
- Bad asterisk imports: "import java.utils.*;" becomes "import java.*;"
- Lose of Array fields: "String[] strings;" becomes "String strings;"
- Lose of Array constructor parameters: "Vet(String[] strings)" becomes "Vet(String strings)"
To test it:
- create a new project using clinic.roo script.
- replace Vet.java with attached Vet.java.changed file
- Use Roo field command to add a field to entity:
field string --fieldName foo --class ~.domain.Vet
- When process finish Vet.java looks like Vet.java.error
Attachments
Issue Links
- duplicates
-
ROO-1061 Java imports doesn't read properly
-
- Closed
-