Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Swapping for Domains and their views doesn't work - restart required #178

Open
dularion opened this issue Jul 12, 2018 · 0 comments
Open

Comments

@dularion
Copy link

dularion commented Jul 12, 2018

So I've noticed that when I have a .gson file which renders a domain instance and then i add new properties to that domain during development, the rest of the application handles it pretty well, but from the gson i get exceptions when trying to access those new properties, for example

jobLayoutTemplate_gson: 19: [Static type checking] - No such property: ldBackgroundImage for class: JobLayoutTemplate
 @ line 19, column 21.
     ldBackgroundImage jobLayoutTemplate.ldBackgroundImage?.getSimpleInstance()

At that point, i gotta restart the app.

This is not a very urgent issue, as restart usually doesnt take too long, but I wanted to point out to you that hot-swapping new domain properties seems to work well otherwise, its usually the gsons that have trouble with it.

Grails version: 3.1.10
Grails views:: 1.2.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant