From what I understand, Japan actually has an "out" for that stipulation. Besides, they are granted a very sizeable defense force... and who is to say whether an aircraft carrier is offensive or defensive?
I believe the video speaks to that..
Germany? I haven't looked it up, but while I was there, the "status oif forces" agreement was dropped, but I don't know if that affected it so much as their emergence into NATO..
Besides, I suppose it is the UN who is to watch if/how Germany rebuilds...just as it was the purview of the League of Nations to oversee what Germany was doing between WW1 and WW2....and we know how that went!