Java has pretty much always been free even before it was open source. I'm not sure if it's still true, but the saying at SUNW was that IBM made far more money off of Java than SUNW ever did.
I'm not sure why anyone would want to buy SUNW. They ceased to be relevant the day linux was...