Fix test compile for jdk6

Small tweak due to sun jdk bug 6302954.