48

I have no idea what a hot swap is and for the life of me cannot construct a google search that will find what it means in the context of my program. I was editing my class, the same way I do all the time, and when I went to run it I all of a sudden got a

Hot Swap failed: myClassName: schema not implemented

error.

Can anyone explain this to me in Layman's terms?

Kees de Kooter
  • 7,078
  • 5
  • 38
  • 45
Niko
  • 984
  • 1
  • 7
  • 15

1 Answers1

87

You are attempting to change your source code while the program (or IntelliJ's debugger) is still running. This is what the HotSwap feature does according to IntelliJ's KB.

Please make sure your program and/or debugger is stopped before re-launching the program and the issue should be resolved.

Kees de Kooter
  • 7,078
  • 5
  • 38
  • 45
Ricky Mutschlechner
  • 4,291
  • 2
  • 31
  • 36
  • 2
    @user3686057 I only know from doing it so, so many times. No problem :) Glad it's working. – Ricky Mutschlechner Jul 23 '14 at 23:42
  • 19
    You are right, but the question is, what's the point of a hotswap if I have to stop and restart the debugger :) – Storm Oct 23 '15 at 06:35
  • 1
    @Storm that isn't the point of a hot swap - my answer, hence the point of the question, is for people who _accidentally_ leave the program running and try to re-run it, which triggers the hot swap feature. I assume that people who are actually trying to hot swap will know what they are doing. – Ricky Mutschlechner Oct 23 '15 at 07:59
  • Thank you so much, I was getting worried :) – alejandrogiron Feb 23 '18 at 00:19