History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1820
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Peter Ledbrook
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

Stack overflow when reloading java classes

Created: 11/Nov/07 06:01 AM   Updated: 19/Nov/07 09:39 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive test-java-reloading-bug-report-11112007.zip (12 kb)



 Description  « Hide
Changing a java file under 'src/java' while the embedded Jetty is running (via 'grails run-app') causes a stack overflow. The probem appears to be in the ControllersGrailsPlugin: the dynamically created 'getProperties' method for domain classes calls DGM.getProperties(), which in turns calls 'getProperties()' on the metaclass. So we get a never-ending circle of method calls until the eventual stack overflow.

I have attached a bug report that demonstrates the problem. Simply do 'grails run-app' and then modify 'src/java/org/example/MyUtils.java' when the application is up and running. When you save the changes, Grails will appear to hang.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.