-
-
Notifications
You must be signed in to change notification settings - Fork 962
Open
Labels
Milestone
Description
Expected Behavior
In grails 5, I can hot change actions in controllers. It will show the result of my changes after auto re-compile.
Actual Behaviour
Grails 7 auto re-compiles but still runs old code.
There won't be any changes until I stop Grails 7 and start it again.
Steps To Reproduce
- Go to https://start.grails.org/ and download Grails 7 M1 project
- cd inside directory
./gradlew bootRun
- Stop the app
./grailsw create-domain-class com.example.Student
./grailsw generate-all com.example.Student
- ./gradlew bootRun
- Stop the app again
- Edit
grails-app/controllers/com/example/StudentController.groovy
- add this line to
index
actionprintln '======grails 7====print 1========'
- in browser go to http://localhost:8080/student/index and click on com.example.StudentController
- You will see this in console
======grails 7====print 1========
- Do not stop the app. Edit
grails-app/controllers/com/example/StudentController.groovy
and change print to println '======grails 7====print 2========'` - After auto recompile, go to http://localhost:8080/student/index and click on com.example.StudentController
- You will see ex in console
======grails 7====print 1========
Expected
Expected to see ======grails 7====print 2========
Actual
But actually is printed is ======grails 7====print 1========
Environment Information
- Mac OS
- java=22.0.2-zulu
gradle=8.10
groovy=4.0.22
Example Application
No response
Version
grails=7.0.0-SNAPSHOT
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status