8170798: Fix minor issues in java2d and sound coding

Reviewed-by: prr, serb
7 files changed