In this paper, we solve the intertemporal investment problem of an investor holding a portfolio of default-free and defaultable bonds. Default-risk is modeled in an intensity based framework with state variables following an affine diffusion. The structure of the optimal portfolio over time is...