I did a calculation based on other missiles stuffed into the J-20, and bay depth should be at least 470mm. The J-20 actually has a longer weapons bay than the F-35, to begin with, at around 4.5-4.7m, while having the same bay layout as the F-22.
The point is that what sunk the F-22 program was that the F-22 was only minimally multi-role; the high cost of operation and low-payload efficiency of the F-22 meant that it saw no action over Iraq or Afghanistan, if I recall correctly, and if not, it saw no action after enemy air-to-air threats were eliminated. The F-22 is thus relegated to a single-role air combatant; when the aircraft's air combat capabilities become obsolete, like if the F/A-XX program hits IOC, the F-22, unlike, say, the F-15E, can't be relegated to air-to-ground duties.
I am not arguing that the J-20 is purposely designed as a striker or interceptor, or is not focused on air superiority missiles, but there is no reason for it to be given some level of strike capability, instead of going the F-22 and F-15C-style "not-a-pound-for-air-to-ground".
It was the collapse of the USSR that killed the F22. The programme was already too far advanced when the Soviets collapsed to cancel, but without rear big threat, there was just no justification for such an expensive air dominance fighter.
It is also no accident that the Americans are lamenting the premature termination of the F22 production run and smallish numbers procured more and more as the J20 and PAKFA develops.
Dedicated fighters are fine so long as there is a critical role they are filling. The F22 got cut short because the role it was meant to be willing effectively dissapeared overnight with the USSR.
The J20 won't face anything like that since there is no way Amercia will implode like the USSR, and faced with the threat of American air power, the Chinese government is willing to pay almost any price to get J20s operational, and lots of them.
With the way the rumours have been going, I would say there is a strong chance that the PLAN wants a naval J20 as its medium to long term carrier fighter. If that happens, it will greater increase the production run, and lower costs.
There is also a fundamental difference between how Chinese view defence compared to the Europeans or even Americans. The Chinese attitude towards defense is most close to how the Israelies view defence, and that is a lesson burned into the racial memory of the Chinese after over a century of suffering, humiliation and death.
Because of this, I do not expect anyone who matters in China to even consider cutting defense spending anywhere in the foreseeable future. As such, there will be little or no budgetary pressure on the J20 short of some calamitous failure of the programme.
In summary, the J20 has a very clear and well defined requirement and mission, that and the secure budgetary position the PLA can expect to enjoy in the foreseeable future means there is no need to tac on multirole capabilities to sell the J20 to the Chinese leadership.
As far as the Chinese civilian and PLAAF leadership are concerned, the only mission that matters for the J20 is air dominance. If it fails at that, then there truly would be no need for it. But so long as it does that one mission well, that would be more than enough reason for the PLAAF to pay top premiums for it.
I would expect the J20 to be a pure-bred air dominance fighter with absolutely no compromises made to make it multi-role. It will be measured against the F22, and against such a benchmark, no one could afford to make design compromises and hope to have any chance of beating it.
If the PLA really feel like they need a stealthy AShM delivery platform, they will develop one, in the form of a stealthy tactical bomber rather than trying to shoehorn the J20 into that role.