Reputation: 446
I am developing application using grails which uses groovy.I changed one of the domain class name say class A to class B.However this does not change the file name unlike the case with Java.Why is it so.My guess would be the A.groovy file is treated as groovy script and class name is a Java class?Please clarify..thanks
Upvotes: 3
Views: 1681
Reputation: 27200
If you rename a class, you need to need to rename the source file in which that class is defined. If you are using an IDE's refactoring support, the IDE should do that for you. Regardless, the file name should be changed either by you or by your tools.
Upvotes: 3