For Code of the Siegebreaker, while a sword is equipped, the Sun Warrior buff doesn't recharge melee ability faster. For Code of the Devastator, while a sword is equipped, picking up the Throwing Hammer does not recharge the melee ability.
This seems to have been around for more than a year and is game-breaking in mid to high level content for Sunbreakers who use swords, especially Stronghold users. I would think that a separate charge box for swords would be a potential solution, but I don't know if melee and sword charge share the same spot for specific programming reasons.