intellij compiled class

Jackie
Oct 21, 2021

--

when I finished updating a class in IntelliJ, I was expecting the hot reload (spring devtools) to kick in, however that didn’t happen automatically.

after a further look, seems like when a class is updated, IntelliJ has a different place (probably in memory) to store the updated class file or maybe only the delta.

the class file on the file system is not updated, still with the old timestamp. hence the filewatcher won’t kick the reload.

a rebuild of the project would then update any class updated. the timestamp would be updated, subsequently the reload.

Published

Originally published at https://lwpro2.dev on October 21, 2021.

--

--

No responses yet