Hot reload in Java have some limitations.
You need to use tools like JRebel or Hotswap Agent to improve the Java hot swap capabilities.