Integrating the current-voltage relation shows that a finite electric current cannot change capacitor voltage instantaneously. An imposed impulsive current can make it jump. A prescribed instantaneous short-circuit discharge is an idealization of this exceptional fast process, not a counterexample for finite current.
Initially the open switch leaves a series capacitor-resistor-inductor circuit driven by the battery. After a long time the electric current is zero and the capacitor voltage is . Closing the switch bypasses and, under the stated idealization, instantaneously discharges the capacitor. The inductor current remains continuous at zero.
The remaining RL circuit obeys , so
The capacitor's impulsive discharge through the ideal short is distinct from the finite electric current through the coil. A finite switch resistance would resolve that separate fast transient.