It is not contrary, since both canons essentially match.
C'mon annalex, you have to know that it is indeed contrary to the premise that the canon was settled in 5th c, since even the canon of these non-infallible councils they matched that of Trent, that does not mean the canon was settle and binding as you claimed, for substantial scholarly disagreement continued for centuries and right into Trent, which needed to settle it.
But Trent settled the canon in agreement with Hippo and Orange and contrary to Luther’s blasphemies.