It's always possible to design the 2 aircraft's aft fuselage structure to accomodate both engines. The holding brackets for the 2 type of engines will necessary be different but they should have no problem fitting into the aft fuselage if they are designed to do just that to begin with.
But the same cannot be said for the older aircraft and, even production aircraft, since doing so may impose a penalty on the aircraft, for example an increase in the weight of the structure.
Come to think of it, in the case of the production, or even the prototypes, J-15, it's quite likely the the aft structure is already optimised for the WS-10H engine without necessating the use of a holding bracket.
I would say that the prototype is specially modified to house both engines and it is honestly fairly typical to fly a developemental engine alongside the current production model for the purpose of retaining the reliability of the production engine. It is not uncommon to shut down an engine that exceeds the design limits in some ways and many turbines are shut down on initial start-up if the temps exceed a certain limit, however once running and up to temp, turbines are overall very reliable. It wouldn't require a great deal of engineering to adapt an airframe to run a choice of engines, and one of the F-35 issues was the development of an alternative engine which has been since been D/Ced due to cost.