intellij compiled class

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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s