Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: None
-
Fix Version/s: 1.2.4.RELEASE
-
Component/s: @ CORE
-
Labels:None
Description
If a entity (or any .java) is modified by Spring Roo and this file has an import static definition, the static modifier is lost when file is rewritten.
To test it:
- create a new project using _clinic.roo: scrip
- Edit Vet.java and add this import declaration:
import static org.apache.commons.lang3.Validate.notBlank;
- Use Roo field command to add a field to entity:
field string --fieldName foo --class ~.domain.Vet
- After Roo changes Vet.java, the previous import declaration will be this:
import org.apache.commons.lang3.Validate.notBlank;