My thought experiment:
We repalce our sun with an object of identical mass, rotation, shape, etc. but not the same density, i.e. the object would have a radius of 100km. The "replacement-time" would be instant.
Would our orbit / the gravity that earth experiences change? As far as I know there are some strange effects for very dense objects like black holes or neutron stars.
I guess this question could be boiled down to:
Does the density of an object play a role for it's gravitational effects?