I agree, China is in the same position too, even with the J-20 and J-31 we are still many years behind the Western countries and we haven't built a successful 5th generation jet-engine yet.
Even the Russians are struggling to develop PAK FA and they are much more advanced than India or China in the aviation industry.
Currently, only the USA has built fully operational and successful 5th generation jet-engines and even the British built the Rolls-Royce F136 5th generation jet-engine.
It is best for both India and China to continue working hard on their current projects and keep gaining more knowledge and experience. We will soon catch up.