Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-RC2
-
Component/s: None
-
Labels:None
-
Environment:2.0.0.BUILD-SNAPSHOT
Description
I can't seem to update scaffolded domain classes after adding a new property while run-app is active. To reproduce:
- Grab the project from
GRAILS-8344 - Start run-app
- Go to http://localhost:8080/where/book/list
- Edit Book.groovy, adding a String isbn property
- Refresh the list view until the new column is displayed.
- Click through to an existing book.
- Click on Edit
- Enter a value for the Isbn field
- Click Update
I get this exception:
Cannot set readonly property: properties for class: org.example.Book. Stacktrace follows: Message: Cannot set readonly property: properties for class: org.example.Book Line | Method ->> 74 | update in org.example.BookController - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run . . in '' ^ 680 | run in java.lang.Thread
Can't reproduce this in head