I created a Roo petclinic application by using the provided samples/clinic.roo file which compiles without problems.
Now I edit the VisitController.java and add my custom populateEditForm method:
I also add the required
Afterwards I run the Roo shell again which says:
Now the compililation fails:
What happened? By creating my custom populateEditForm, Roo removed this method from the .aj file, as well as the imports for both Pet and Vet. But there is still a Pet.countPets() call in the .aj's createForm method that cannot find the Pet import now.