Long term contracts with dummy years at their ends were allowed too, the NHL warned the teams not to do so, then they changed the rules and added recapture penalties. They even took away a Devils 1st round pick before they gave it back.
Not that the recapture punishments will ever be metered out given LTIR instead, yet we never hear about the shady moves the NHL prevented, only the ones they allowed.
If they think they can prove the moves constitute cap circumvention, they do have general language in the CBA that allows them to punish, whether they would ever use it or try to prove it or not seems to lean they would not. Yet not so sure I'd want to be the team tempting them to.