AFAIK, Russia provided ToT with their Su-27s so that China produces it locally under license, however, They came out with their J-11 and derivatives based on the Su-27 family without even admitting that they're the same aircraft and without paying Russia anything.