Reputation: 397
Something seems currently wrong with my web application project and its internal dependencies: if I modify the body of a public, non-static Java method for certain classes, my whole project gets recompiled. This is a huge waste of my time, how can I go about debugging this and fix it ?
If possible I would like sbt to tell me the incremental compile dependency tree (ie: modifying "myMethod" triggers recompile classes A1 and B1, recompiling A triggers recompile A2, recompiling B1 triggers recompile B2, and so on. This would probably give me some clue. Does this even exist ?
Upvotes: 0
Views: 327
Reputation: 3638
There is nothing wrong with Play framework when changing/modifying the code leads to re-compilation. This is basically a feature of Play framework called "Hot Reloading".
Now coming to the second part of your question, you need to understand how play hot reloading works
Let's say your play server is running and you make a code change. Then following steps are followed
To summarize, play framework discards the old classloader and creates a new one with the updated classes and hence complete project is recompiled again.
Hope that answers your question !!!
Upvotes: 2