This is actually pretty cool, if it all works. And it is exactly what the OP asked for.
However, this would mean that if you switch from paladin to hunter at high level, for example, you will learn all hunter skills at once.
Not only does that not make sense for the character to gain all skills at once without any practice. The player will also suddenly have a complete different skill set. Normally playing a new class has a bit of a learning curve.
Doing this switch out of the blue right before a boss fight, might feel kind of like a middlefinger to the player. Everything they learned is suddenly useless and they have no real clue what came in it's place.
Of course I can't say with certainty, without knowing more about your project, but I have my thoughts about this whole sudden class change idea.
Let us know how it all turns out.