You are correct - if you are upgraded, you are supposed to receive the miles for 'C' class. (125% of actual miles on domestic flights and 100% on domestic/international flights)
Was it an international/transborder flight you were on? If so, then it doesn't make a difference since all the international/transborder revenue booking classes earn 100% if you're not booked in 'J'.