Doctrine in canon law cannot be changed. But other things in canon law can be changed.
We have already seen a doctrinal change in canon law to allow non-Catholics to receive communion without conversion (1983 vs 1917).
That makes rational sense.
Then again the canon law being referred to has not been 'changed' as much as attitudes towards the portions which just had been here touched upon by daniel1212, have been rather relaxed(?), or so it seems...
Carry on, regardless? Do what you can, don't worry yourself too much about the rest?
God will have the last say in all things, on that we are likely to agree, and furthermore possibly agree that we all are reliant upon His grace, and mercy, albeit He should not be tempted in those aspects of His being, if one can knowingly avoid doing so.
He is the scariest One of them all.
When He's the one who is irritated, ooh baby, look out.
I've had Him (by the Spirit) chew me out a time or two, while letting me know a little of how He felt about a this, or that concerning myself, and other things also, Him briefly revealing to me His own emotions as it were. His are more powerful than anyone's.
Yet after all of that type of thing, within myself still remains propensity for sinning.
Oh what a wretched man that I am. There's nothing comforting to me, or funny about that part of things...
While laws based upon doctrine which are applied in certain contexts can be changed, doctrine is also understood by how it is applied, and a change in the latter can in effect teach a change in doctrine. If you are saying there never have been contradictions in canon law then you need to look up the Benedictine monk Gratian.