Think of it this way. California is at a point where they can't stop themselves from spending more than they owe and the result of that is no one in their right mind would ever buy a Bond from them. Because there's a really good chance they'll be bankrupt before they could pay it off.
So what the state is doing is taking the people they have complete power over (those who did work for them expecting payment at a later date) and giving them a certificate of debt so they can continue to pay creditors whose services they need and who they have no power over.
http://en.wikipedia.org/wiki/Municipal_bond
Many other states and munis do.
Whether its a good investment or not is dictated by the risk and interest rate associated to it. You can't not pay your obligations which in this case would be the interest rate to cover today's expenses. Otherwise we are talking about a larger issue which would be bankruptcy.